I am a beginner at Kusto and am trying to create a query that returns a distinct (fruit) column based on another (data) column containing a specific substring.
In the example below, if an "awesome" substring is found in the data column then return "found" that and if not, return "not found" but always maintain the distinctness of the first column.
let Fruit = datatable(fruit:string, data:string)
[
"apple", "awesome",
"apple", "beast",
"banana", "a beast",
"orange", "awesome cat",
"orange", "blah"
];
So the desired output would be:
"apple", "found",
"banana", "not found",
"orange", "found",