A | M | FROM clause join |
---|---|---|
- | Y |
t1 NATURAL [INNER] JOIN t2
|
Y | Y |
t1 [INNER] JOIN t2 ON c1=c2
|
- | Y |
t1 [INNER] JOIN t2 USING (c,...)
|
- | Y |
t1 NATURAL {FULL | LEFT | RIGHT} [OUTER] JOIN t2
|
Y | Y |
t1 {FULL | LEFT | RIGHT} [OUTER] JOIN t2 ON c1=c2
|
- | Y |
t1 {FULL | LEFT | RIGHT} [OUTER] JOIN t2 USING (c,...)
|
- | Y |
t1 CROSS JOIN t2
|
Note: MS Access requires the word "INNER". MySQL in contrast doesn't accept the word "INNER" if the "NATURAL" keyword is included.
Inner and outer joins specify fields whose values must match to be included in the result. There are three equivalent ways to specify these columns.
ON
syntax.
This is an equi-join.
NATURAL
join.
It is an equi-join.