Outer
O prefixo Join explícito pode ser precedido pelo prefixo outer para especificar uma
A palavra-chave outer é opcional e é o tipo de junção padrão usado quando um prefixo não é especificado.
Syntax:
Outer Join [ (tablename) ](loadstatement |selectstatement )
Arguments:
Argumento | Descrição |
---|---|
tablename | A tabela nomeada a ser comparada com a tabela carregada. |
|
O comando LOAD ou SELECT da tabela carregada. |
Example:
Table1 |
|
A |
B |
1 |
aa |
2 |
cc |
3 |
ee |
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;
Tabela combinada |
|
|
A |
B |
C |
1 |
aa |
xx |
2 |
cc |
- |
3 |
ee |
- |
4 |
- |
yy |