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 UNIONALL?

Answer Posted / amit dixit

Just Above is OK except UNION ALL result modified..
Example:
Table 1 : First,Second,Third,Fourth,Fifth
Table 2 : First,Second,Fifth,Sixth

Result Set:
UNION: First,Second,Third,Fourth,Fifth,Sixth (This will
remove duplicate values)
UNION ALL:
First,First,Second,Second,Third,Fourth,Fifth,Fifth,Sixth
(This will repeat values)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dbcc? Give few examples.

950


How to modify the underlying query of an existing view?

926


Why should you use or avoid select * statements?

965


What do you mean by data integrity?

995


What are the advantages of using cte?

950


As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?

988


Explain the difference between delete,drop and truncate in SQL Server?

1017


Explain the purpose of indexes?

899


What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?

1058


You want to implement the many-to-many relationship while designing tables. How would you do it?

954


what is difference between view and Dip.

2371


How to execute a stored procedure in ms sql server?

1068


how you can move data or databases between servers and databases in sql server? : Sql server administration

914


How to create user messages with print statements in ms sql server?

939


Why is there a performance difference between two similar queries where one uses union and the other uses union all?

982