Page 136 - Touhpad Ai
P. 136
Left Outer Join
This join returns all records from the left table, and the matching records from the right
table.
Left Right
Table Table Syntax: SELECT table1.column1, table1.column2, table2.column1, ....
FROM table1
LEFT JOIN table2
ON table1.matching_column = table2.matching_column;
Right Outer Join
It returns all records from the right table, and the matching records from the left table. Left Right
Table Table
Syntax: SELECT table1.column1, table1.column2, table2.column1, ....
FROM table1
RIGHT JOIN table2
ON table1.matching_column = table2.matching_column;
Full Outer Join
Left Right Combines the result of both LEFT JOIN and RIGHT JOIN. It returns all records which match
Table Table in either left or right table.
Syntax: SELECT table1.column1, table1.column2, table2.column1, ....
FROM table1
FULL OUTER JOIN table2
ON table1.matching_column = table2.matching_column;
AI REBOOT
1. Identify the type of join and the set operation from the diagram given below:
table 1 table 2
2. Identify the relational and set operation from the diagram given below:
A B
134 Touchpad Artificial Intelligence - XI

