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 / manoj pandey

Check below links to know the reason with examples from my blog posts:

IN vs EXISTS vs JOIN: http://sqlwithmanoj.wordpress.com/2011/02/15/not-in-not-exists-joins-with-null-values/

UNION vs UNION ALL: http://sqlwithmanoj.wordpress.com/2010/12/30/why-union-all-is-faster-than-union/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sql server procedures?

976


Can we add an identity column to decimal datatype?

999


How to divide query output into multiple groups with the group by clause in ms sql server?

1032


How to convert binary strings into integers in ms sql server?

1025


What is user-defined functions? What are the types of user-defined functions that can be created?

1032


What is table-valued sub query?

962


What is a field name?

957


What is normalization? Explain different forms of normalization?

1154


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure?

999


How to execute stored procedure and set temp table in sql server?

1038


What is data modeling and Reterminal integrity?

1955


Define clusters?

1065


Explain query editor regions

1042


Can you explain different types of locks in sql server?

945


How many types of the database links?

1068