Module 13 (Introduction to SQL - Part 2).pdf
Module 13 (Introduction to SQL - Part 2).pdf
Module 13 (Introduction to SQL - Part 2).pdf
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The RIGHT JOINThe RIGHT JOIN specifies that all records fromthe right-hand table be returned, even if the recordhas no matching records in the left-hand table.If we had used a RIGHT JOIN in the previousexample, all Order records would be returned,even those with unmatched EmployeeID fields.Any order record which could not be matched <strong>to</strong>any employee would be returned exactly once, andthe fields that came from the left-hand table(Employees) would be NULL in that record.