Professional Documents
Culture Documents
Joins
• Looked at many different joins types
• Inner and left joins are most common
• Only seen two table at once
• What about more than two tables?
• We can select from more than two tables
• Big advantage of using databases
• We just add another join keyword, then the
next table
• Select …. From table1
• Join table2 ON table1.col=table2.col
• JOIN table3 ON table2.col=table3.col
• OR
• SELECT emp name FROM Emp Natural Join
Dept;
Self Join
• When a table is joined to itself .