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

What stored by the msdb?

583


What is a not null constraint?

591


What is an index in sql?

548


what is an index? : Sql server database administration

518


What are diverse clauses that form a part of sql?

595






Write a Select Query to display title for each group of records, which are collected with Compute Clause? Like titlefield column-A column-B ..... ..... ..... Sum ... titlefield column-A column-B ..... ..... ..... Sum ...

1569


What is the sql case statement used for? Explain with an example?

536


Once setting replication, is it potential to own a publisher as sixty four bit sql server and distributor or subscribers as a thirty two bit sql server?

543


What are the different type of replication in sql server?

536


What happens if the update subquery returns multiple rows in ms sql server?

586


Explain the various types of concurrency problem?

696


How to use group functions in the select clause in ms sql server?

531


What is isnull() operator?

566


Difference between aggregate functions of sql?

651


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?

619