what is differece between union and union all

Answer Posted / ramesh raja

UNION: combine distinct values between two tables
UNION ALL : combine all values and also duplicates values
between the two tables

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is SQL Azure different than SQL server?

101


Explain can SSRS reports Cache results?

118


How to create an index on an existing table in ms sql server?

580


What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?

1934


Does index slows down insert statements?

667






How do you troubleshoot errors in a SQL Server Agent Job?

645


What is the purpose of forms?

590


How do I save a stored procedure in sql server?

582


What do you mean by authentication modes in sql server?

697


What are the different methods available under sqlcommand class to access the data?

779


How to divide query output into multiple groups with the group by clause in ms sql server?

654


what is a self join? : Sql server database administration

615


What happens if you add a new index to large table?

597


What are the new features of sql server 2008 r2 reporting service?

118


Is a primary key unique?

616