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 are the advantages of user-defined functions over stored procedures in sql server?

664


What triggers long term care?

716


Explain in brief about Microsoft SQL server?

728


What is the difference between cartesian product and cross join?

637


What is transact-sql ddl trigger?

812






Explain user defined views?

745


What is the maximum size per database for sql server express?

742


What are user defined functions in ms sql server?

683


What are the differences between ms sql server & oracle?

741


Explain different forms of normalization?

687


what is the difference between them (ethernet networks and token ring networks)? : Sql server database administration

702


What is the difference between executequery () and executeupdate ()?

710


what is sql server? : Sql server database administration

697


What are distinctive joins find as a part of sql?

702


What is view in sql?

716