What is the difference between UNION and UNIONALL?

Answer Posted / valarmathi

union is used to retreive the data with out duplication
union all is used to retreive the data with duplication

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are types of scd? : sql server analysis services, ssas

536


The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio

520


Explain linked server in sql?

690


Explain about sql server login?

589


What stored by the model?

546






What do you understand by recursive stored procedures?

561


How will you go about resolving deadlocks?

545


What is the cartesian product of table?

540


If a stored procedure is taking a table data type, how it looks?

5798


What is difference between index and primary key?

578


Can you pass expressions to stored procedure parameters?

501


What are system databases into sql server (2005/2008)?

580


What is indexed view?

592


How many tables can be joined in SQL Server?

587


How to declare and use cursor variables?

579