What is the difference between UNION and UNIONALL?

Answer Posted / suresh

UNION statement effectively does a SELECT DISTINCT on the
results set. If you know that all the records returned are
unique from your union, use UNION ALL instead, it gives
faster results.

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of database schema? : sql server analysis services, ssas

601


What is the use of custom fields in report?

561


Can we perform backup restore operation on tempdb? : sql server database administration

583


In which files does sql server actually store data?

471


What is a derived table?

513






How do I create a stored procedure in dbml?

514


What is sql server agent and what are the two modes of authentication in sql server?

550


What is the web service used for reporting services?

98


Explain the various types of concurrency problem?

701


How do I trace a query in sql server?

541


What are key, name and value columns of an attribute? : sql server analysis services, ssas

573


How to truncate the log in sql server 2012? : sql server database administration

573


What is 4nf in normalization form?

569


Why use “nolock” in sql server?

559


What is the default Port No on which SQL Server listens?

627