Answers

Question and Answer:

  Home  Database Developer

⟩ Can you list the different type of joins?

There are various types of joins which are used to retrieve data between the tables. There are four types of joins, namely:

☛ Joins - SQL interview Questions - EdurekaInner join: Inner Join in MySQL is the most common type of join. It is used to return all the rows from multiple tables where the join condition is satisfied.

☛ Left Join: Left Join in MySQL is used to return all the rows from the left table but only the matching rows from the right table where the join condition is fulfilled.

☛ Right Join: Right Join in MySQL is used to return all the rows from the right table but only the matching rows from the left table where the join condition is fulfilled.

☛ Full Join: Full join returns all the records when there is a match in any of the tables. Therefore, it returns all the rows from the left-hand side table and all the rows from the right-hand side table.

 127 views

More Questions for you: