Reader small image

You're reading from  Scalable Data Analytics with Azure Data Explorer

Product typeBook
Published inMar 2022
Reading LevelBeginner
PublisherPackt
ISBN-139781801078542
Edition1st Edition
Languages
Concepts
Right arrow
Author (1)
Jason Myerscough
Jason Myerscough
author image
Jason Myerscough

Jason Myerscough is a director of Site Reliability Engineering and cloud architect at Nuance Communications. He has been working with Azure daily since 2015. He has migrated his company's flagship product to Azure and designed the environment to be secure and scalable across 16 different Azure regions by applying cloud best practices and governance. He is currently certified as an Azure Administrator (AZ-103) and an Azure DevOps Expert (AZ-400). He holds a first-class bachelor's degree with honors in software engineering and a first class master’s degree in computing.
Read more about Jason Myerscough

Right arrow

Introducing KQL's scalar operators

It is impossible to cover all of KQL's operators and functions in one chapter. But in this section, we will learn about some of the common operators. We will introduce more operators and functions throughout the rest of the book.

KQL also supports arithmetic, logical, and relational operators. Let's quickly review these operators, beginning with the arithmetic operators, before diving into searching and filtering, since they are commonly used in queries.

Arithmetic operators

The arithmetic operators allow us to perform calculations on numbers and dates. We can use the print operator to print strings and the result of expressions.

Table 5.4 lists the operators in order of precedence:

Table 5.4 – Arithmetic operators for numerical values

Table 5.4 – Arithmetic operators for numerical values

The following print statement prints the result of 550 + 5, which is 555.

print 550 + 5

Using the parentheses, we can override the operator precedence...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Scalable Data Analytics with Azure Data Explorer
Published in: Mar 2022Publisher: PacktISBN-13: 9781801078542

Author (1)

author image
Jason Myerscough

Jason Myerscough is a director of Site Reliability Engineering and cloud architect at Nuance Communications. He has been working with Azure daily since 2015. He has migrated his company's flagship product to Azure and designed the environment to be secure and scalable across 16 different Azure regions by applying cloud best practices and governance. He is currently certified as an Azure Administrator (AZ-103) and an Azure DevOps Expert (AZ-400). He holds a first-class bachelor's degree with honors in software engineering and a first class master’s degree in computing.
Read more about Jason Myerscough