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

Explain spool.

1219


What is sql data?

1034


What is plpgsql language?

1142


Which type of cursor is used to execute the dml statement?

995


What does fetching a cursor do?

1133


What is the order of sql select?

1088


What is the difference between local and global temporary table?

1088


What is the difference between between and in condition operators?

1066


Write a unique difference between a function and a stored procedure.

1054


How do I run a pl sql procedure in sql developer?

1022


Which is better cte or subquery?

1076


Is sql developer case sensitive?

1048


What are synonyms in sql?

1027


What is set serveroutput on in pl sql?

1361


What is bitemporal narrowing?

1370