- explicit
- implicit
- Explicit
- Impicit
The result of both queries is the same.
OUTER JOIN - does not require each record in the joined tables to have a matching record
- LEFT [OUTER] JOIN
- RIGHT [OUTER] JOIN
- FULL OUTER JOIN
- Left join
includes all rows from the left table emp even though there are no defined departments for
- Right join
includes all rows from the right table dept even though there are no defined employees for
NATURAL JOIN - joins tables with columns which have the same names
select * from emp natural join dept
The result is equivalent to select * from emp, dept where emp.deptno=dept.deptno (defined implicitly)
CROSS JOIN - returns cartesian product (декартово произведение)
select * from emp cross join dept
The result is the same as - select * from emp, dept
No comments:
Post a Comment