Kusto Limit Operator and Take Alias | Kusto Query Language Tutorial (KQL)

Topic: Kusto Limit Operator and Take Alias


Kusto Limit Operator and Take Alias | Kusto Query Language Tutorial (KQL) Kusto Query Language is a powerful tool to explore your data and discover patterns, identify anomalies and outliers, create statistical modeling, and more. The query uses schema entities that are organized in a hierarchy similar to SQL's: databases, tables, and columns. A Kusto query is a read-only request to process data and return results. The request is stated in plain text, using a data-flow model that is easy to read, author, and automate. Kusto queries are made of one or more query statements.

 // Limit Operator / TAKE Operator   
   
 //Definition : Return up to the specified number of rows. There is no guranttee which records will be returned unless order by is used.  
   
   
 // Get 5 Random records from a table  
 TotalSale  
 | limit 5  
   
 // Take 5 records by using order by and limit operator  
 TotalSale  
 | order by id asc | limit 5  
   
   
 // Get 5 Random records from a table by using Take Alias  
 TotalSale  
 | take 5  
   
   
 // Take 5 records by using order by   
 TotalSale  
 | order by id asc | take 5  
   
 TotalSale  
 | order by SalePersonFName desc | take 5  

Video Demo: Kusto Limit Operator and Take Alias | Kusto Query Language

No comments:

Post a Comment