Professional Documents
Culture Documents
JOINS
JOINS
MANAGEMENT SYSTEM
UNIT – 3
JOINS
Joins
• An SQL join clause combines records from two or more tables in a
database.
Inner Join
Left Outer Join
Joins
• In the Employee table above, the employee "John" has not been assigned to any department yet.
• Also, no employees are assigned to the "Marketing" department.
Inner Join
• Inner join creates a new result table by combining column values of two tables
based upon the join-predicate.
• The query compares each row of table A with each row of table B to find all pairs
of rows which satisfy the join-predicate.
Explicit Join Notation
SELECT * FROM employee
INNER JOIN department
ON employee.DepartmentID = department.DepartmentID;