Professional Documents
Culture Documents
6. Inner joins combine records from two tables whenever there are matching
values in a field common to both tables. You can use INNER JOIN with the
Departments and Employees tables to select all the employees in each department.
7. LEFT (OUTER) JOIN : Returns all records from the left table, and the matched
records from the right table. RIGHT (OUTER) JOIN : Returns all records from the
right table, and the matched records from the left table. FULL (OUTER) JOIN :
Returns all records when there is a match in either left or right table.
8. The CROSS JOIN query in SQL is used to generate all combinations of records
in two tables. For example, you have two columns: size and color, and you need a
result set to display all the possible paired combinations of those—that's where the
CROSS JOIN will come in handy.