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 / saradhi

Just like JOINS, UNION combines data into a single record-
set but vertically by adding rows from another table. JOINS
combine data horizontally by adding columns from another
table.

UNION insures you get DISTINCT records from both the tables.
UNION ALL pulls out all records from both the tables with
duplicates.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a self join? : Sql server database administration

1013


What is entity data services?

1036


How to retrieve error messages using odbc_errormsg()?

1033


Explain Capacity planning to create a database? and how to monitor it?

4176


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

1013


what is checksum in sql server.........???

1666


Write a SQL query to make a column as unique?

1011


Explain few of the new features of sql server 2008 management studio

898


How to download and install the scaled-down database adventureworkslt?

977


How to list all triggers in the database with sys.triggers in ms sql server?

1055


What are the new features in sql server 2016?

953


Do you know concepts and capabilities of sql server?

1041


What is trace flag in sql server?

1004


What will be the maximum number of indexes per table?

937


Why use sub query in sql server and list out types of sub queries?

975