adspace


What are joins, explain all types of joins?

Answer Posted / Shivam Shukla

Joins in SQL allow the combination of rows from two or more tables based on a related column between them. There are several types of joins:
1. Inner Join: Returns only the matching rows from both tables involved in the join.
2. Left (Outer) Join: Returns all the rows from the left table and the matching rows from the right table, if any. If there is no match, null values are used for columns from the right table.
3. Right (Outer) Join: Returns all the rows from the right table and the matching rows from the left table, if any. If there is no match, null values are used for columns from the left table.
4. Full (Outer) Join: Returns all the rows when there is a match in either the left or right table. If there is no match, null values are used for columns from the non-matching table.
5. Cross Join (Cartesian Product): Returns the combination of every row from both tables involved in the join.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to put more than 1000 values into an oracle in clause?

1115


How to write a left outer join with the where clause in oracle?

1156


Design database draw er diagram for a certain scenario ?

4656


How to select all columns of all rows from a table in oracle?

1132


Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com

1956


How to start an oracle instance?

1103


What is oracle latest version?

1174


How to use values from other tables in update statements using oracle?

1158