I want to extend table 1 as IsAvailableInTable2 = Yes, if there's a value matching Id (Column in Table1) in column MonitorId in Table 2. I tried using materialize but didn't quite work out.
//Table 1
datatable(Id:string, MetadataKey:string, MetadataValue:string, Key:string, Value:string)
[
"Restarting", "", "", "", "",
"Starting", "", "", "", "",
"Failed", "Location", "Monitor", "Routing", "xyz",
]
//Table 2
datatable(MonitorId:string, Automitigated:long, AlertCount:long)
[
"Restarting", 94, 94,
"Restart", 93, 93,
"Failed", 92, 92,
]
Expected Result: