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 is the difference between getdate and sysdatetime?

1060


How do you test your database? : sql server database administration

1070


What is acid properties?

1190


Explain about unique identifier data type in sql server?

976


You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes to optimize performance, how should you distribute the tables and their indexes onto different file groups?

1053


What are binary string data types in ms sql server?

1390


How do I open port 1433?

986


Can a cursor be updated? If yes, how you can protect which columns are updated?

1175


How to grant a permission in ms sql server using "grant execute" statements?

1134


What is TDS(Tabular Data Stream) Gateway?

127


What is standby servers? Explain types of standby servers.

1053


How to find a value in another dataset based on current dataset field (ssrs 2008 r2)?

176


How to use column default values in insert statements in ms sql server?

1099


How to reaname table name without using sp_Rename in sql server..?

1039


Can we use pragma autonomous_transaction in trigger?

1014