What is UNION,UNION ALL?
Answers were Sorted based on User's Feedback
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 blu acceleration in db2?
how can we retrieve the 100 records of the file ?
What is the meaning of -805 SQL return code?
Mention some fields that are a part of sqlca.
How to solved 818 error
4 Answers Keane India Ltd, Wipro,
What are the contents of a DCLGEN?
What is the physical storage length of each of the following DB2 data types: DATE, TIME, TIMESTAMP?
My SQL is not performing well. Describe how will you fine tune it?
what is rebinding ?
What is a clustering index ?
Is db2 a programming language?
What is isolation level in db2?