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

What is log ldf?

721


How to transfer data from a cursor to variables with a "fetch" statement?

767


How except clause is differs from not in clause?

702


How to trouble shoot if unable to connect SQL Server

1677


What is user-defined multi-statement table-valued function?

827






Where is trigger in sql server?

725


What is log in sql server?

759


What is DCL?

762


Determine when an index is appropriate?

750


List some case manipulation functions in sql?

773


How can I track the changes or identify the latest insert-update-delete from a table?

715


how can you attach more than 20 ldf files in sql server

1743


Explain steps of normalization?

719


What are 3 ways to get a count of the number of records in a table?

825


What is set nocount on?

682