ADX Kusto Self Join with a combination of equality and inequality
databricksuser-5173
0
Reputation points
Hi,
How do we generate Kusto query to achieve a self-join query, where one column matches but the other doesn't?
For example:
myTable
| where myColumnSubset == "mySubGroup"
| join kind=inner (
myTable
| where myColumnSubset == "mySubGroup"
| project myColumnOne, myColumnTwo, myColumnThree
)
on $left.myColumnOne == $right.myColumnOne
The above query works.
If I add below further inequality criterion, it fails
$left.myColumnTwo != $right.myColumnTwo
Thank you
Sign in to answer