what is differece between union and union all

Answer Posted / shabanafazal

in case of 'union' the data of two tables are combined
together with no repetition where as incase of 'union all'
repetition of data is done e.g in table 'A' we have name
saad three times and in 'B' table name 'ssad' is present
one time then in case of 'union' 'saad' is appeard once
(when union of table 'A' and 'B' is done). where as in case
of 'union all' the name 'saad' will repeated four times.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the boxing and unboxing concept in .net?

542


How do I save a stored procedure in sql server?

492


Can you explain different types of locks in sql server?

522


What is function of CUBE ?

605


Which is the main third-party tool used in sql server?

476






What is the parse query button used for?

602


What are sparse columns?

584


How to find out the list schema name and table name for the database?

524


What is unpivot?

567


what is the Ticketing tool used in Wipro technologies at Bangalore...???

7474


Define left outer join?

579


explain the storage models of olap? : Sql server database administration

518


How does index makes search faster?

595


What stored by the model?

546


Do you know spatial data types - geometry and geography in sql server 2008?

576