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 difference between the conventional and direct path loads? : aql loader

1400


Is primary key is clustered index?

1002


What packages are available to pl/sql developers?

1059


What is meant by temporal data?

969


What are the triggers associated with image items?

1042


How to get list of all tables from a database?

1160


Can a view be mutating? If yes, then how?

1028


What is query syntax?

973


What language is oracle sql developer?

1020


What is the difference between a subquery and a join?

1108


what are the differences between char and varchar? : Sql dba

1071


Where do we use pl sql?

996


Explain architecture of sql server notification services?

1061


How to call shell script from pl sql procedure?

1281


How do you optimize a query?

1003