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 UNION,UNION ALL?

Answer Posted / sanjudharan

UNION : eliminates duplicates

UNION ALL: retains duplicates

Both these are used to combine the results of different
SELECT statements.

Suppose I have five SQL SELECT statements connected by
UNION/UNION ALL, how many times should I specify UNION to
eliminate the duplicate rows? -

Once.

Is This Answer Correct ?    22 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected

11615


What do you mean by rollback?

932


What is innodb buffer pool?

977


What is the function of logging in the db2 database?

1069


What is an instance in db2?

982


What is the physical storage length of date data type?

1189


What is the use of reorg in db2?

1024


B37 abend during spufi?

1405


Following a db2 update statement, what is the quickest way to compute the total number of updated rows?

1003


What is the reason behind not using select * in embedded sql programs?

1044


List down the types of triggers in the db2 database?

962


What does sqlcabc has?

994


What is the purpose of rollback and commit?

1086


What is database reorganization?

1053


What are db2 tables?

1050