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 single-user mode and what are the steps you should follow to start sql server in single-user mode?

932


How can you ensure that the database and sql server based application perform well?

1010


What is default constraint?

931


What happens to a trigger with multiple affected rows?

864


Do you know what are the ways available in sql server to execute sql statements?

956


What do you mean by a Composite primary key?

1025


Can one drop a column from a table?

963


What are the components of dbms?

902


What is query processing?

880


Can You Use Data Mining Models In Ssrs?

137


Explain what is row_number function?

971


What are examples of triggers?

1015


Explain system views?

1020


Explain transaction server auto commit?

983


How to create a new table in a given schema?

1108