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 alias in db2?
What is isolation level in db2?
What is read-only cursor?
Write a query to retrive partial string.
What does CURRENTDATA option in bind indicate
How to access db2 tables in mainframe?
How is a typical db2 batch pgm executed?
Suppose I have a program which uses a dynamic SQL and it has been performing well till now. Off late, I find that the performance has deteriorated. What happened?
If there is no row in Emp table with Ename as Raghava and you run the below queries in SPUFI. 1.select Ename from EMP wher Ename = 'raghava' 2.Select count(*) from EMP where Ename = 'raghava' What is SQLCODE shown up in SPUFI
What is node in db2?
if one db2 pgm calls another db2 pgm. how many plans do we need. what r the steps involved..
How can you display the current date & current time ?