What are the different types of joins in sql?

Answer Posted / hr@tgksolutions.com

• Inner Join: Returns matching rows from both tables.
• Left Join (Left Outer Join): Returns all rows from the left table and matching rows from the right table.
• Right Join (Right Outer Join): Returns all rows from the right table and matching rows from the left table.
• Full Join (Full Outer Join): Returns all rows when there’s a match in one of the tables.
• Cross Join: Returns the Cartesian product of both tables.
• Self Join: A table joins itself.
Example Query:
SELECT e1.name, e2.name AS manager_name
FROM employees e1
JOIN employees e2 ON e1.manager_id = e2.id;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference among union, minus and intersect?

731


What is the starting oracle error number?

757


What is a clob in sql?

729


What is sql analyzer?

759


What is a trigger word?

730






how to use myisamchk to check or repair myisam tables? : Sql dba

711


How to convert comma separated string to array in pl/sql?

812


What is the best free sql database?

769


What is data manipulation language?

880


What is rollback?

786


Does view contain data?

788


Are stored procedures faster than queries?

697


How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?

798


What is set transaction?

765


What is sql lookup?

683