Assignment 3
Assignment 3
SECTION: BSIS – 3A
• WHAT IS JOIN?
• RIGHT JOIN
The SQL RIGHT JOIN, joins two tables and fetches rows based on
a condition, which is matching in both the tables (before and after
the JOIN clause mentioned in the syntax below) , and the
unmatched rows will also be available from the table written after
the JOIN clause.
• LEFT JOIN
• LEFT JOIN (specified with the keywords LEFT JOIN and ON)
which the SQL-expression is true, plus rows from the first table that
do not match any row in the second table.
• OUTER JOIN
• The SQL OUTER JOIN returns all rows from both the participating
tables which satisfy the join condition along with rows which do not
satisfy the join condition. The SQL OUTER JOIN operator (+) is
used only on one side of the join condition only.
• INNER JOIN
• The INNER JOIN keyword selects all rows from both tables as long
as there is a match between the columns.
• NATURAL JOIN
•
• RIGHT JOIN
• LEFT JOIN
• NATURAL JOIN