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 difference between in and exists.
Ex: select * from emp where empno in(....) and
select * from emp where empno exists(....)

What is the difference between a Join and Union and Union
and UnionAll.

Answer Posted / shafiq...

When you use IN operator it will scan all the row in table
to check and Exists means when its find the data stop
execute to check further row.

Join- to join matching data from two or more table.
Union- Retrive matching data from both table.
UnionAll- Retrive matching as well as unmatched data from
both data.

hope this is clear

Is This Answer Correct ?    19 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are scalar functions?

1002


How to change server name in sql server?

1188


Does transparent data encryption provide encryption when transmitting data across the network?

1051


what do you understand by change data capture?

1029


Where views are stored in sql server?

991


Can you explain powershell included in sql server 2008?

942


How to add an address record into adventureworkslt?

986


Can we store videos inside the sql server table?

986


Tell me what is difference between clustered and non clustered index?

944


What happens if you add a new index to large table?

942


What is role playing dimension with two examples? : sql server analysis services, ssas

1010


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

956


How to create a simple stored procedure in ms sql server?

1032


What is raid? : SQL Server Architecture

1183


How to return the date part only from a sql server datetime datatype?

1106