Amazon interview question

Name and explain all forms of join in SQL

Interview Answers

Anonymous

11 July 2021

Inner Join, Outer Join, Left Inner Join, Right Inner Join Inner Join - Returns a table with common columns from both the tables with all records/rows. Left Inner Join - Returns a table with common columns from both the tables and all the columns from the left table with every row/record. Right Inner Join - Returns a table with common columns from both the tables and all the columns from the right table with every row/record. Outer join - Joins the two tables returning all the columns and rows of both the tables.

Anonymous

25 May 2022

There is one more: CROSS JOIN - all combinations of records between two tables.