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 UNION,UNION ALL?

Answer Posted / sanjudharan

UNION : eliminates duplicates

UNION ALL: retains duplicates

Both these are used to combine the results of different
SELECT statements.

Suppose I have five SQL SELECT statements connected by
UNION/UNION ALL, how many times should I specify UNION to
eliminate the duplicate rows? -

Once.

Is This Answer Correct ?    22 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a dbrm in db2?

1025


What is the syntax for creating a table in the db2 database?

1109


What is dbrm library?

1064


What is the use of predicate?

1043


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

9216


What is coalesce in db2?

1136


What is the purpose of using commit?

1100


What is difference between rollback and commit?

1164


How would you find out the total number of rows in a db2 table?

1055


What is the physical storage length of timestamp data type?

1096


What is null indicator in db2?

1114


What is rebind in db2?

1069


List down the data types in the db2 database.

1124


How will you return the number of records in table?

937


What does db2 mean?

1018