kustoSQL Cheatsheet
kustoSQL Cheatsheet
Kusto supports subset of SQL language. See the list of SQL known issues
(../api/tds/sqlknownissues.html) for the full list of unsupported features.
Primary language to interact with Kusto is KQL (Kusto Query Language), and in order to make
transition and learning experience easier, you can use Kusto service to translate SQL queries to KQL.
This can be achieved by sending SQL query to Kusto services prefixing it with 'EXPLAIN' verb.
For example:
Query
StormEvents
-- -- substring // substring
SELECT * FROM dependencies dependencies
WHERE type like "%blob%" | where type contains "blob"
-- -- wildcard // wildcard
SELECT * FROM dependencies dependencies
WHERE type like "Azure%" | where type startswith
"Azure"
// or
dependencies
| where type matches regex
"^Azure.*"