# Outer

O prefixo Join explícito pode ser precedido pelo prefixo outer para especificar uma outer join. Em uma outer join, são geradas todas as combinações entre as duas tabelas. Por isso, a tabela resultante conterá combinações de valores de campo das tabelas de dados brutos nas quais os valores de campo de link são representados em uma ou ambas as tabelas.

A palavra-chave outer é opcional e é o tipo de junção padrão usado quando um prefixo não é especificado.

Sintaxe:

Outer Join [ (tablename) ](loadstatement |selectstatement )

Argumentos:

Argumentos de carregamento de tabela

| Argumento | Descrição |
| --- | --- |
| tablename | A tabela nomeada a ser comparada com a tabela carregada. |
| loadstatement or selectstatement | O comando LOAD ou SELECT da tabela carregada. |

Exemplo:

Example 1A

| Table1 | - |
| --- | --- |
| A | B |
| 1 | aa |
| 2 | cc |
| 3 | ee |

Example 1B

| Table2 | - |
| --- | --- |
| A | C |
| 1 | xx |
| 4 | yy |

`SQL SELECT  * 
 from table1;` `join SQL SELECT 
* from table2;`

OR

`SQL SELECT * 
 from table1;` `outer join 
 SQL SELECT * from table2;`

Exemplo 1C

| Tabela combinada | - | - |
| --- | --- | --- |
| A | B | C |
| 1 | aa | xx |
| 2 | cc | - |
| 3 | ee | - |
| 4 | - | yy |

## Saiba mais

* [Join](https://help.qlik.com/pt-BR/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Join.htm)
* [Inner](https://help.qlik.com/pt-BR/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Inner.htm)
* [Left](https://help.qlik.com/pt-BR/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Left.htm)