what is the difference between union and union all
Answer Posted / praveen k. agrawal
union is used For select distinct values from two tables
where as union all is used For select all values including
duplicates from the tables.
For Example Table X contain values(a,b,c) and Table Y
contain values(c,d,e)
In Case Of Union we will get Result-a,b,c,d,e
and other hand (Union All ) we will get-a,b,c,c,d,e.
| Is This Answer Correct ? | 23 Yes | 0 No |
Post New Answer View All Answers
what is the bond code in materialized view?
Is sqlite thread safe?
Can one improve the performance of sql*loader? : aql loader
What are the parts of a basic sql query?
What is query optimization in sql?
How do I order columns in sql?
Is sql a dbms?
How many types of primary keys are there?
What is difference between group by and partition by?
what is the difference between a web-garden and a web-farm? : Sql dba
How can you know that statistics should be updated?
What is the life of an sql statement?
Can we group by two columns in sql?
How do I truncate a sql log file?
Mention what problem one might face while writing log information to a data-base table in pl/sql?