SQL Joins
SQL Joins
BCSE302P
SQL Joins
student
course
➢ SQL INNER JOINS return all rows from multiple tables where the join condition is
met.
➢ In some databases, the LEFT OUTER JOIN keywords are replaced with LEFT JOIN.
➢ In some databases, the RIGHT OUTER JOIN keywords are replaced with RIGHT
JOIN.
➢ In some databases, the FULL OUTER JOIN keywords are replaced with FULL
JOIN.
student
course
➢ Syntax
➢ Select * FROM table1 NATURAL JOIN table2;
➢ Syntax
➢ Select * FROM table1 CROSS JOIN table2;
➢ Or, Select * FROM table1, table2;
➢ Syntax