> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-fix-nav-issues.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Documentação da cláusula ALL

# Cláusula ALL

Se houver várias linhas correspondentes em uma tabela, `ALL` retornará todas elas. `SELECT ALL` é idêntico a `SELECT` sem `DISTINCT`. Se `ALL` e `DISTINCT` forem especificados ao mesmo tempo, uma exceção será gerada.

`ALL` pode ser especificado em funções de agregação, embora não tenha nenhum efeito prático no resultado da consulta.

Por exemplo:

```sql theme={null}
SELECT sum(ALL number) FROM numbers(10);
```

É equivalente a:

```sql theme={null}
SELECT sum(number) FROM numbers(10);
```
