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 will select employee’s first names and the name of the departments they work for:

SELECT e.FName, d.Name
FROM   Employee e, Departments d
WHERE  e.DeptartmentId = d.Id

This would return the following from the example database:

| e.FName | d.Name | |:––––|:—––| | James | HR | | John | HR | | Richard | Sales |

Feedback about page:

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



Table Of Contents