What is the difference between UNION and UNIONALL?

Answer Posted / subramanya gv

Union is used to combining the data with out duplication and
effectively it is faster.
Union all is used to combining the data with duplication so
comparatively it is slower.

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define outer join?

748


Find nth lowest salary or get nth lowest salary?

793


What are the elements of dbms?

711


How do I create an extended event in sql server?

668


What is history table in sql server?

660






What are the properties of primary key?

715


How can I tell if sql server is 32 or 64 bit?

707


How to create nested stored procedure?

691


What are the differences between “row_number()”, “rank()” and “dense_rank()”?

718


What is the use of attributehierarchyvisible ? : sql server analysis services, ssas

786


What can be used instead of trigger?

799


What is nonclustered index with included columns ?

709


How to drop an existing table?

726


What is ems sql management studio? : sql server management studio

758


What is transact-sql language?

755