What is a join?Explain the different types of joins?

Answer Posted / sheels

Join is used to combin rows from multiple table. Join is performed when ever two or more table is listed in the FROM clause of an SQL statment.
Types of Join;
1.Natural Join: Natural join tells the database to join two table using the common columns.
2.Equality Join: Here the table is related using the equal(=) sign.
3.Inner Join: This is the most common type of join. Inner join returns all the rows from the table when the join condition is met.
4.Outer Join:It joins the matching records from two table and all the records from one side of the table and those un matching records have null value.
(i)Left Outer Join:It joins the matching records from two table and all the records from left side of the table and those unmatching records have null value.
(ii)Right Outer Join: It joins the matching records from two table and all the records from right side of the table and those unmatching records will have null value
5.Self Join: It is used to join a table to it.

Is This Answer Correct ?    26 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is keys and its types?

548


What is the largest value that can be stored in a byte data field?

523


Is inner join faster than left join?

642


What mean sql?

585


Where do we use pl sql?

557






Is there a pl/sql pragma similar to deterministic, but for the scope of one single sql select?

539


what is data manipulation language? : Sql dba

533


Does mysql_real_escape_string prevent sql injection?

541


What is the difference between in and between in sql?

580


What is the difference between instead of trigger and after trigger?

514


What are the two virtual tables available at the time of database trigger execution?

649


What is the difference between a database and a relational database?

565


What are different functions in sql?

521


What are the set operators in sql?

563


How many aggregate functions are available there in sql?

532