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 |
In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?
what is the difference between where clause and having clause
How do I optimize a query in db2?
What do you need to do before you do EXPLAIN ?
Can there be more than one cursor open for any program?
What's The Error Code For Unique Index Voilation?
What's the Maximum Length of SQLCA and what's the content of SQLCABC?
What is concurrency in db2?
What is copy book?
Are views updateable?
How do you prepare a COBOL + DB2 program from coading till execution ?
what is a trigger and types of triggers