HomeInterview QuestionsCan you tell me the types of joins in SQL?

Can you tell me the types of joins in SQL?

🟢 Easy Conceptual Junior level
1Times asked
Jun 2026Last seen
Jun 2026First seen

💡 Model Answer

SQL supports several join types that combine rows from two or more tables based on a related column. The most common are:

  • INNER JOIN: returns rows where the join condition is true in both tables.
  • LEFT (OUTER) JOIN: returns all rows from the left table and matching rows from the right; unmatched right rows are NULL.
  • RIGHT (OUTER) JOIN: symmetric to LEFT JOIN, returning all rows from the right table.
  • FULL (OUTER) JOIN: returns rows when there is a match in either table, filling missing side with NULL.
  • CROSS JOIN: returns the Cartesian product of the two tables.
  • SELF JOIN: a table joined to itself, useful for hierarchical data.

Additionally, SQL:2003 introduced NATURAL JOIN (joins on columns with the same name) and USING clause for specifying join columns. Understanding these joins is essential for accurate data retrieval and performance tuning.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.

Get Assisting AI — Starts at ₹500