# Comparison Operators & Functions

| Operator |      Description      |
| :------: | :-------------------: |
|     <    |       less than       |
|     >    |      greater than     |
|     =    |         equals        |
|    <>    |       not equals      |
|    <=    |   less than equal to  |
|    >=    | greater than equal to |

#### <mark style="color:purple;">IS NULL</mark>

Returns boolean when the value equates to null.

```sql
> select * from table where col1 IS NULL; -- true/false
```

#### <mark style="color:purple;">IS NOT NULL</mark>

Returns boolean when the value does not equate to null.

```sql
> select * from table where col1 IS NOT NULL; -- true/false
```

#### <mark style="color:purple;">IN(</mark>  value1,  value2,  value3...<mark style="color:purple;">)</mark>

```sql
WHERE element IN (expr1, expr2, expr3...)
```

Returns a boolean value **true** if the `element` value is present in the given set of expressions. Else false is returned.

```sql
> select colA from Table1 where colB in (val1, val2, val3);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.e6data.com/product-documentation/sql-command-reference/comparison-operators-and-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
