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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using JOIN and WHEREIf, for example, we want <strong>to</strong> find out order his<strong>to</strong>ryfor only those employees who earn $50,000+/year,we can add it in a WHERE clause:SELECT *FROM Employees E INNER JOIN Orders OON E.EmployeeID = O.EmployeeIDWHERE Employees.Salary >= 50000

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

Saved successfully!

Ooh no, something went wrong!