Implicit Join

suggest change

Joins can also be performed by having several tables in the from clause, separated with commas , and defining the relationship between them in the where clause. This technique is called an Implicit Join (since it doesn’t actually contain a join clause).

All RDBMSs support it, but the syntax is usually advised against. The reasons why it is a bad idea to use this syntax are:

The following example selects each employee’s first name and the name of the department they work for:

SELECT e.FName, d.Name
FROM   Employees e, Departments d
WHERE  e.DepartmentId = d.Id

This would return the following from the example database:

e.FName d.Name
James HR
John HR
Michael Sales
Johnathon HR

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents