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

Explain few examples of stored procedure over triggers?

620


How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?

675


Explain indexes disadvantages?

633


what stored procedure can you use to display the current processes? : Sql server administration

611


You want to use bids to deploy a report to a different server than the one you chose in the report wizard. How can you change the server url?

122






How to rebuild all indexes on a single table?

675


How to get the definition of a stored procedure back?

616


Explain a differential backup?

661


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

956


What is field with example?

591


Explain indexing and what are the advantages of it?

621


What are sub reports and how to create them?

103


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

1436


on line cluster can we make if yes tell me the procedure

1613


What is parameterized reports in ssrs ?

111