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

How to get the definition of a stored procedure back?

530


Characterize join and name diverse sorts of joins?

533


How to create an identity column?

644


Is null in sql server?

544


What is the difference between functions and stored procedures?

620






Explain activity monitors

625


While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?

623


what is new philosophy for database devises for sql server 7.0? : Sql server database administration

519


What is clustered index

572


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

598


How can we check the sql server version?

569


How to create hyperlink from returned sql query ?

627


How does using a separate hard drive for several database objects improves performance right away?

531


What is default constraint?

543


What are the difference between data mart and data warehouse? : sql server analysis services, ssas

506