InterviewSolution
Saved Bookmarks
| 1. |
Explain natural join. |
||||||||||||||||||||||||||||
|
Answer» Natural Joins are a type of join that combines tables based on columns that share the same name and have the same datatype. Ideally, there should be a common attribute (column) among two tables in order to perform a natural join. Syntax: SELECT * FROM TableName1 NATURAL JOIN TableName2;Example: Consider two tables Employee and Employment. Employee
Employment
Now, consider the following query. SELECT * FROM Employee NATURAL JOIN Employment;Output:
|
|||||||||||||||||||||||||||||