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 innodb buffer pool?

0 Answers  


What is the function of the Data Manager?

2 Answers  


suppose in my table 10 rows are there , i want to update odd rows salary as 90000 ? how u do it ? any one help me ? what do we use here cursor-fetch or normal sql ?

5 Answers   IBM,


What is check constraint in db2?

0 Answers  


What are the four lockable units for DB2?

1 Answers  






What is db2 command?

0 Answers  


Which isolation level provides maximum concurrency?

0 Answers  


Comment whether dclgen is mandatorily used. If not, then what is the point of using it?

0 Answers  


What are the advantages of using a PACKAGE?

2 Answers  


What is the difference between CS and RR isolation levels?

1 Answers  


if there is a table with huge number of records and if i want to extract only first 3 records from the table, what query i have to provide to retreive first 3 records

4 Answers   UST,


List out the buffer pools in db2

0 Answers  


Categories