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 does ss stand for sexually?

592


Describe the left outer join & right outer join. : sql server database administration

587


What are the extra roles available in msdb? : sql server security

642


How to execute a stored procedure in ms sql server?

554


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

656






How to find the service pack installed? : sql server database administration

554


What is the difference between Stored Procedures and triggers?

576


What is spid in sql server profiler?

540


Is it true that rules do not apply to data already existing in a database at the time the rule is created?

563


What are differences in between sql server 2012 and sql server 2016?

571


Show Practically Sql Server Views are updatable?

594


What is b tree index?

516


How is sql used in sql server?

503


Which are ddl commands?

542


How many partitions a clustered index has by default in sql server 2012?

663