What are the different types of joins and explain them
briefly.

Answer Posted / rahul koshti

There are 2 main type of joins :
Equijoin : Join N number of tables for equality =.
Non-Equijoin : Join N number of tables for other than
equality such as <>,<,>,IN,BETWEEN etc.

Technically there are total 3 different types of joins:
Cross Join: When join condition is missing then all rows
from one table gets joined with all rows from other table..
Inner Join: If a row has a NULL value in any one of the
columna of join conditin then that row will not fetched.
Outer Join: Even if the NULL values are present in any
columns of join condition that record will get fetched.
There are again 3 types of outer joins: Left, Right, Full.
Self Join : A table is joined with self.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to show all tables with 'mysql'? : Sql dba

604


What is a call statement? Explain with an example.

545


What is sql not null constraint?

600


How do you delete data from a table?

539


Explain the steps needed to create the scheduled job?

557






What is an implicit commit?

554


what is difference between delete and truncate commands? : Sql dba

575


What are stuff and replace function?

568


What is on delete restrict?

534


Where are my tempfiles, I don't see them in v$datafile or dba_data_file?

546


What are joins in sql?

534


What are the benefits of triggers?

599


What is the primary key?

536


How do I run a pl sql program?

629


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

505