SQL Cheat Sheet PDF
SQL Cheat Sheet PDF
These are just subset of the operators available. Please refer to https://aka.ms/AIAnalyticsReference for a complete reference.
Try Analytics yourself by instrumenting with Azure Application Insights, or in the Analytics demo environment: https://aka.ms/AIAnalyticsDemo!
https://www.azure.com AIAnalyticsOutreach@microsoft.com
© 2016 Microsoft Corporation. All rights reserved. @Azure
Application Insights Analytics – useful operators
Category Relevant Analytics functions
Selection and Column aliases project, project-away, extend
Temporary tables and constants let scalar_alias_name = …;
let table_alias_name = (){ … | … | … };
Comparison and String Operators startswith, !startswith
has*, !has
contains, !contains, containscs
hasprefix, !hasprefix, hassuffix, !hassuffix
in, !in
matches regex
==, =~, !=, !~
*for a more performant solution than converting case when comparing strings use:
"aBc" =~ "abc"
Common math functions sqrt(), abs()
exp(), exp2(), exp10(), log(), log2(), log10()
pow()
gamma(), gammaln()
Parsing text extract(), extractjson(), parse*, split()
hash
Date functions now(), ago()
datetime(), datepart(), timespan
startofday(), startofweek(), startofmonth(), startofyear()
endofday(), endofweek(), endofmonth(), endofyear()
dayofweek(), dayofmonth(), dayofyear()
getmonth(), getyear(),
weekofyear(), monthofyear()
Grouping and aggregation summarize by
max(), min(), count(), dcount(), avg(), sum(), stddev()
countif(), dcountif()
by argmax(), argmin()
top, count(), min(), max(), bin() percentiles(), percentile_array()
top, top-nested
Joins and Unions join kind=leftouter, inner, rightouter, fullouter, leftanti
union
Sort, order sort, order
Dynamic object (JSON and array) parsejson()
operators and functions makeset(), makelist()
split(), arraylength()
zip(), pack()
Logical operators iff(condition, value_t, value_f)
More info about these and other functions and operators is available on our language reference: https://aka.ms/AIAnalyticsReference
https://www.azure.com AIAnalyticsOutreach@microsoft.com
© 2016 Microsoft Corporation. All rights reserved. @Azure