what is differece between union and union all

Answer Posted / dinesh sharma

Union:Only Select Distinct Value
Union All:Select All Values Using Duplicate
All Selected Columns Must Have Same DataType
Example:
Table 1 : First,Second,Third,Fourth,Fifth
Table 2 : First,Second,Fifth,Sixth

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between a having clause and a where clause.

528


What is bit data type? What's the information that can be stored inside a bit column?

532


How to rebuild the master database?

581


How to set the current database in ms sql server?

534


Using the customer, and order table in northwind database, please write a query to produce xml?

665






in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it

1064


How to drop an existing schema in ms sql server?

601


Define msdb database?

604


whats new about truncate in sql server 2008?

2034


what are the disadvantages of cursors? : Sql server database administration

504


What are the different Topologies in which Replication can be configured?

655


What is the difference between having clause and where clause in sql server?

581


What are different types of raid levels?

558


What are the different acid properties?

635


when you create a database how is it stored? : Sql server database administration

499