Outer
Le préfixe explicite Join peut être précédé du préfixe outer pour spécifier une jointure externe (
Le mot-clé outer est facultatif et désigne le type de jointure par défaut utilisé lorsqu'aucun préfixe de jointure n'est spécifié.
Syntax:
Outer Join [ (tablename) ](loadstatement |selectstatement )
Arguments:
Argument | Description |
---|---|
tablename | Table nommée à comparer à la table chargée. |
|
Instruction LOAD ou SELECT de la table chargée. |
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;
OU
SQL SELECT * from table1;
outer join SQL SELECT * from table2;
Table jointe |
|
|
A |
B |
C |
1 |
aa |
xx |
2 |
cc |
- |
3 |
ee |
- |
4 |
- |
yy |