---
title: and predicate
description: Learn the syntax of the and predicate of the SQL language in Databricks SQL.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/and
---

# `and` predicate

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns the logical AND of `expr1` and `expr2`.

## Syntax

```
expr1 and expr2
```

## Arguments

* `expr1`: A BOOLEAN expression
* `expr2`: A BOOLEAN expression

## Returns

A BOOLEAN.

## Examples

```sql
> SELECT true and true;
 true
> SELECT true and false;
 false
> SELECT true and NULL;
 NULL
> SELECT false and NULL;
 false
```

## Related functions

* [`or` operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/or.md)
* [`not` operator](https://docs.databricks.com/aws/en/sql/language-manual/functions/not.md)
