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

Tell me about builtinadministrator?

560


How many databases instances are there in sql server 2000?

579


Tell me the use of keyword with encryption. Create a store procedure with encryption?

548


Does union all remove duplicates?

606


Explain what are partitioned views and distributed partitioned views?

579






How to delete database objects with "drop" statements in ms sql server?

592


you have separate development and production systems you want to move a copy of a development database into production to do this, you do a backup on the development system and restore to the production system after a few minutes, you begin getting calls from several customers saying that they are denied access to the system why? : Sql server administration

550


What command is used to rename the database?

523


Write a query to include a constraint, to check whether the employee salary is greater than 5000?

1108


What is lock escalation? : sql server database administration

592


What is #table in sql server?

530


what is package and it uses and how can u call a package

1556


How many clustered indexes there can be on table ?

598


What is an inner join?

526


Describe in brief authentication modes in sql server.

563