Types of joins?

Answer Posted / sangeetha meda

1. Self Join
Self join is a query in which a table is Joined to itself.

Self joins are used to compare the values in a column to
the other values in the same column in the same table.

2.Equi Join or Inner join
Equi join is a join in which the rows are retrieved the
equality of the relation ship between columns in the tables.

Select only those rows that have values in common in the
columns specified in the ON clause.

3.Non Equi Join or Outer Join

Left Outer Join:

Retrieves the matching records in both the table and non
matching records in the first or left table.

Right Outer Join

retrieves the matching records in both the table and non
matching records in the second or the right table.

Full Outer Join

Retrieves all the records (means matching and non matching
records in both the tables).

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pl sql and why it is used for?

574


How to get unique records from a table?

525


how to install mysql? : Sql dba

582


Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?

538


Compare sql & pl/sql

612






Why do we go for stored procedures?

527


explain the delete statements in sql

585


Can we use pl sql in sql server?

543


How do I edit a trigger in sql developer?

543


What is a rank in sql?

542


What is the usage of distinct keyword?

634


what is the difference between inner and outer join? Explain with example. : Sql dba

553


How can I speed up sql query?

527


what are the authentication modes in sql server? : Sql dba

537


What is audit logout in sql profiler?

592