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 embedded sql in db2?

708


What is loop in pl sql?

761


What do you mean by “trigger” in sql?

793


What does closing a cursor do?

982


How do I run a sql trace?

692






What steps server process has to take to execute an update statement?

709


discuss about myisam key cache. : Sql dba

763


When sql appeared?

815


What is varchar sql?

812


How do I run a script in sql developer?

703


Explain what is a subquery ?

849


Explain what is a field in a database and record in a database?

790


How does postgresql compare to "nosql"?

767


What is the purpose of cursors in pl/sql?

798


What is a primary key sql?

759