Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the differecne between equi-join and inner-join and
natural join..Is there any difference or all are same?

Answers were Sorted based on User's Feedback



What is the differecne between equi-join and inner-join and natural join..Is there any difference ..

Answer / sobia g.

An inner join is a join with a join condition that may contain both equality or non-equality sign whereas an equijoin is a join with a join condition that only contain only equality sign.
So we can say an equijoin is a type of inner join containing (Equal)= operator in the join condition.

It is good to know the difference between join and INNER JOIN keywoed. Actually there is no difference. If we write JOIN then by default INNER JOIN is performed. In the example it is also shown.
The following example will make you more clear.

In this example I used data as in example of Difference between Inner join and Outer join
SQL> select s.name,d.deptname from dept d, student s where d.deptid=s.deptid;
NAME DEPTNAME
--------------- ----------
Rafi CSE
Arju CSE

This example represents both INNER join and equijoin.
SQL> select s.name,d.deptname from dept d INNER JOIN student s on d.deptid=s.deptid;
NAME DEPTNAME
--------------- ----------
Rafi CSE
Arju CSE

Above example also represents both INNER join and equijoin.
SQL> select s.name,d.deptname from dept d INNER JOIN student s on d.deptid<>s.deptid;

NAME DEPTNAME
--------------- ----------
Rafi EEE
Raju EEE
Arju EEE
Raju CSE

Above example represents an inner join but not a equijoin.
SQL> select s.name,d.deptname from dept d JOIN student s on d.deptid<>s.deptid;

NAME DEPTNAME
--------------- ----------
Rafi EEE
Raju EEE
Arju EEE
Raju CSE

Above example show JOIN and INNER join keyword is same. If we don't specify INNER then by default inner join is performed.

Is This Answer Correct ?    52 Yes 11 No

What is the differecne between equi-join and inner-join and natural join..Is there any difference ..

Answer / aditya shukla

Inner join-returns only matching row with equality or nonequality sign

equijoin-this also return matching row but only equal sign

Is This Answer Correct ?    10 Yes 1 No

What is the differecne between equi-join and inner-join and natural join..Is there any difference ..

Answer / sandy

Inner join can have equality (=) and other operators (like <,>,<>) in the join condition.
Equi join only have equality (=) operator in the join condition.
Equi join can be an Inner join, Left Outer join, Right Outer join
The USING clause is not supported by SQL Server and Sybase. This clause is supported by Oracle and MySQL.

Is This Answer Correct ?    4 Yes 2 No

What is the differecne between equi-join and inner-join and natural join..Is there any difference ..

Answer / jitendra mali

The equi join is retrived selected column from the both
the table
or
The inner join is only retrived selected column from the table

Is This Answer Correct ?    6 Yes 15 No

What is the differecne between equi-join and inner-join and natural join..Is there any difference ..

Answer / ankita pandey

Equi Join -- Join performed in two tables having a common columna
with shared values in two tables by applying a where condition.
inner Join- Join performed in the same table itself(self join).

Is This Answer Correct ?    3 Yes 19 No

What is the differecne between equi-join and inner-join and natural join..Is there any difference ..

Answer / monal

INNER JOIN and EQUI-JOIN are same. Not sure about Natural
Join. Found answer in Books On Line.

Is This Answer Correct ?    29 Yes 51 No

What is the differecne between equi-join and inner-join and natural join..Is there any difference ..

Answer / samba shiva reddy . m

all are same but we can't use equi join and natural join in synax those are older

Is This Answer Correct ?    7 Yes 29 No

What is the differecne between equi-join and inner-join and natural join..Is there any difference ..

Answer / mobin sathupally

All are same.

Eg:

SELECT
*
FROM Emp INNER JOIN Emp1
ON eid=id


SELECT
*
FROM Emp EQUI JOIN Emp1
ON eid=id

SELECT
*
FROM Emp NATURAL JOIN Emp1
ON eid=id

Is This Answer Correct ?    18 Yes 71 No

Post New Answer

More SQL Server Interview Questions

how to change column into row in sql

4 Answers   ESS,


WHAT OPERATOR PERFORMS PATTERN MATCHING?

2 Answers   CarrizalSoft Technologies, CTS,


How to transfer a table from one schema to another?

0 Answers   MCN Solutions,


what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?

0 Answers  


Why do we partition data?

0 Answers  


What are a scheduled jobs?

0 Answers  


What is the purpose of the tempdb database?

0 Answers  


Well sometimes sp_reanmedb may not work you know because if some one is using the db it will not accept this command so what do you think you can do in such cases?

2 Answers  


What is The Use Of TIMESTAMP DataType in SQL Server 2005?

6 Answers  


What is ms sql server index?

0 Answers  


List the data types available in mssql?

0 Answers  


What functions can a view be used to performed?

0 Answers  


Categories