Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is the bond code in materialized view?

2933


Is sqlite thread safe?

993


Can one improve the performance of sql*loader? : aql loader

983


What are the parts of a basic sql query?

920


What is query optimization in sql?

941


How do I order columns in sql?

914


Is sql a dbms?

940


How many types of primary keys are there?

980


What is difference between group by and partition by?

978


what is the difference between a web-garden and a web-farm? : Sql dba

1012


How can you know that statistics should be updated?

1025


What is the life of an sql statement?

964


Can we group by two columns in sql?

946


How do I truncate a sql log file?

1007


Mention what problem one might face while writing log information to a data-base table in pl/sql?

1161