I'm trying to join two KQL tables with between operator as you can see below:
let Table1 = datatable(ProductID:int,ProductName:string,Price:real) [ 1, "Laptop", 1000.0, 2, "Smartphone", 500.0,3, "Tablet", 700.0 ];
let Table2 = datatable(SaleID:int,ProductID:int,Timestamp:datetime) [ 101, 1, datetime(2024-06-10T08:00:00Z), 102, 2, datetime(2024-06-11T10:30:00Z), 103, 3, datetime(2024-06-11T11:45:00Z)];
Table1 | join kind=inner (Table2) on $right.Timestamp between ($left.Timestamp .. $left.Timestamp) | project-away ProductID1,ProductID
I'm encountering an error message indicating that the join attributes must either be individual column names or expressions for equality. Exact error message you can find below:
Can you please help me to resolve this issue?
I'm trying to join two KQL table with help of between operator instead of ON operator.
