Database Developer Question:

Download Job Interview Questions and Answers PDF

Can you list the different type of joins?

Database Developer Interview Question
Database Developer Interview Question

Answer:

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.

Download Database Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me when are we going to use truncate and delete?Tell me what is BCP? When is it used?