12.07.2015 Views

Module 13 (Introduction to SQL - Part 2).pdf

Module 13 (Introduction to SQL - Part 2).pdf

Module 13 (Introduction to SQL - Part 2).pdf

SHOW MORE
SHOW LESS

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.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!