what is differece between union and union all

Answer Posted / shyam

Union: It will combine the output of two or more queries &
it will eliminate duplicate values.

Union all:It will combine the output of two or more queries
& it will not eliminate duplicate values.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I port a number to sql server?

513


Explain about thread and memory management process of SQL?

550


What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

758


Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .

1502


What sql server means?

565






What are subqueries in sql server?

603


what's the difference between a primary key and a unique key? : Sql server database administration

514


Explain the properties of sub-query in sql server?

521


Explain filestream storage of sql server 2008?

524


what are the new features introduced in sql server 2000? : Sql server database administration

552


How do I connect to sql server database?

490


What are the different types of collation sensitivity in sql server?

596


What is the importance of three tier architecture?

619


Define master database?

590


How to link tables in sql server?

483