what is differece between union and union all

Answer Posted / samy

Union:
combine two tables and common values to be retrieved no
duplicate values

Union All:

All the values to be retrieved when combine two table.
(duplicate values)

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me something about security and sql azure?

112


What command is used to rename the database?

682


What are difference between Cluster index and Non-Cluster index?

780


Which rendering formats are affected by the pagesize properties?

122


What is sql server replication? : sql server replication

692






What is constraints and its types?

675


What is subquery in sql?

735


What is 2nf normalization?

733


How to filter out duplications in the returning rows in ms sql server?

811


What is difference between commit and rollback when used in transactions?

664


How to delete duplicate rows from table except one?

707


How do you create an execution plan?

662


Explain tablesample?

728


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

776


How to change parameter value inside the report?

131