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

If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

651


How do use Having,Group by,Group function in SQL?

1436


Which are ddl commands?

623


Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?

602


Insert syudents details in table.Current system date &time insert into joining time.How do insert?( in sysdate only return current system date how do add time?)

1524






How to list all login names on the ms sql server?

622


What is transaction server auto commit?

658


Define Unique Key?

679


what is the information that can be stored inside a bit column? : Sql server database administration

600


How do you know if sql server is running on your local system?

628


How do you improve the performance of a SQL Azure Database?

123


Explain transaction server isolation?

652


You want to check the syntax of a complicated update sql statement without executing it. What command should you use?

566


after migrating the dts packg to ssis by using migrtn wizrd in 2005. iam not able to open ssis pack and getting error. what r those errors? how to resolve?

1770


What are page splits?

670