> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NOT

> NOT in Query Engine SQL.

<Note>
  This function isn't in the updated function reference yet. The details below come from the previous docs, and the product team is confirming them.
</Note>

## Syntax

NOT \<expr>

Returns true if the value is false.

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
> select colA from table1 where NOT (colB = y);
```

The following truth table demonstrates the boolean output of `AND` and `OR:`

| a | b | a AND b | a OR b |
| - | - | - | - |
| true | true | true | true |
| true | false | false | true |
| false | true | false | true |
| false | false | false | false |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.