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 |
i want to delete 20th million record how ?
What are the functions of Bind?
What is the purpose of coding FETCH in a SQL SELECT query? Explain with an example in Detail?
can I alter a table (e.g. adding a column) when other user is selecting some columns or updating some columns from the same table?
What is DB2 (IBM Database 2)?
i want to maintain uniqueness on pdf without make lf??????????
What is the maximum No of rows per page?
Is it Possible to declare or create a cursor for UPDATE of table? If yes tell me how? If no Tell me why?
how many bytes timestamp token occupies?
6 Answers Boss Global, Cap Gemini, TCS,
What is sqlcode -922 ?
What is correlated subquery?
Update command