SQL Plus Question:
Download Questions PDF

What is a join in Oracle? Explain the different types of joins?

Answer:

Join is a query which retrieves related columns or rows from multiple tables.Self Join - Joining the table with itself.Equi Join - Joining two tables by equating two common columns.Non-Equi Join - Joining two tables by equating two common columns.Outer Join - Joining two tables in such a way that query can also retrieve rows that do not have corresponding join value in the other table.

JOIN: Return rows when there is at least one match in both tables
LEFT JOIN: Return all rows from the left table, even if there are no matches in the right table
RIGHT JOIN: Return all rows from the right table, even if there are no matches in the left table
FULL JOIN: Return rows when there is a match in one of the tables

Download SQL Plus Interview Questions And Answers PDF

Previous QuestionNext Question
Explain How to drop the index?Explain What are the data types allowed in a table?