Inner Joins with More than Two Tables Using SQL/92

Suppose we have SQL/86 table join syntax:


SELECT c.first_name, p.name AS project, pt.name AS TYPE
FROM employees c, purchases pr, projects p, project_types pt
WHERE c.employee_id = pr.employee_id
AND p.project_id = pr.project_id
AND p.project_type_id = pt.project_type_id
ORDER BY p.name;

The above syntax can be mapped to SQL/92 as:


SELECT c.first_name, p.name AS project, pt.name AS TYPE
FROM employees c INNER JOIN purchases pr
USING (employee_id)
INNER JOIN projects p
USING (project_id)
INNER JOIN project_types pt
USING (project_type_id)
ORDER BY p.name;
Home »
Oracle »
Select » 

Join:
  1. Table Join
  2. Using Table name to reference duplicate names
  3. Table Alias
  4. Cartesian Products
  5. Join more than two tables
  6. Join Conditions and Join Types
  7. Outer Joins
  8. Left and Right Outer Joins
  9. Outer join Error
  10. Self Join
  11. Outer Self Join
  12. Inner Joins Using SQL/92
  13. Joins with USING Keyword
  14. Inner Joins with More than Two Tables Using SQL/92
  15. Inner Joins on Multiple Columns Using SQL/92
  16. Outer Joins in SQL/92 Syntax
  17. Self Joins Using SQL/92
  18. Cross Joins Using SQL/92
Related: