NQL where
A where
clause allows you to add conditions to your query to filter the results.
Syntax
Examples
Select the devices running the Windows operating system.
Name | Platform |
---|---|
nxt-gcarlisa | Windows |
nxt-wmirjam | Windows |
Select the devices not running the Windows operating system.
Name | Platform |
---|---|
nxt-jdoe | macOS |
nxt-vlatona | macOS |
Select the users whose name contains “jo”.
Name |
---|
John Fisher |
John Doe |
Using multiple conditions
Use multiple filters separated by and
or or
operators to apply more complex conditions. The conditions in the filter are grouped together to preserve the order of precedence. When you put where
clauses on separate lines, the result is the same as if you created one where
clause with multiple and
conditions.
The following queries provide the exact same results.
Last updated