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?

Answers were Sorted based on User's Feedback



What is UNION,UNION ALL?..

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

What is UNION,UNION ALL?..

Answer / sandeep

Correct answer..

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More DB2 Interview Questions

What is the use of value function?

0 Answers  


What happens to a tablespace when its recovery infromation has been removed and a full recovery is no longer possible?

2 Answers  


How to resolve -504 sql code in DB2?

2 Answers   Cap Gemini,


What type of database is db2?

0 Answers  


What is the role of schema in the db2 database?

0 Answers  


How can you display the current date & current time ?

7 Answers   Cap Gemini,


What is a Foreign Key?

0 Answers   Tavant Technologies, Zensar,


I have a DB2 table which has 1000 rows.after udatingg first 110 rows, my job abends. Now what I have to do if I want to restart the job next time so that it should start updating from 111th row (without updating first 110 rows again).

10 Answers   Cap Gemini, Wipro,


If a table has a column "dept" (declared to have nulls) and there are 10 rows in the table of which 3 have a null value in the dept column, what will select count(*) and select count(distinct dept) return?

6 Answers  


Why might full image copies be faster to implement than an incremental image copy?

4 Answers  


What is db2 plan table?

0 Answers  


How to create backup table in db2?

0 Answers  


Categories