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 a sql driver?

985


Why is %isopen always false for an implicit cursor?

1086


What is a left inner join?

995


Can we use ddl commands in pl sql?

1136


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1166


What is a variable in sql?

981


what are the advantages of mysql in comparison to oracle? : Sql dba

987


What is the difference between function and procedure in pl/sql?

1058


Why stored procedure is faster than query?

1036


What is the use of pl/sql table?

1048


Are sql database names case sensitive?

981


What are tuples in sql?

1116


what are the authentication modes in sql server? How can it be changed? : Sql dba

1392


How many disk partitions should I have?

975


What is procedure and function?

960