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

Do triggers have restrictions on the usage of large datatypes, such as long and long raw?

1222


How long it takes to learn pl sql?

1064


What is sql procedures and functions?

1071


What is foreign key in sql with example?

974


Why use stored procedures?

1139


What do you mean by dbms? What are its different types?

1059


Why partition by is used in sql?

1081


what are all different types of collation sensitivity? : Sql dba

1026


how to enter characters as hex numbers? : Sql dba

1100


What is a table partition?

1203


What is procedure in pl sql?

1086


what are the advantages and disadvantages of views in a database? : Sql dba

1069


does sql support programming? : Sql dba

1085


What is form and report?

1049


What are two statement types in sql?

1155