what is differece between union and union all

Answer Posted / dinesh waitage

1)Union is used to select distinct values from two tables
where as union all is used to select all values including
duplicates from the tables.

2)UNION - returns on Distinct rows/Slower in performance
UNION ALL.

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 difference between functions and scalar functions?

580


how many no of arguments can be passed in procedures and functions

4797


What is sql or structured query language?

695


What is page in sql server?

525


Explain log shipping?

597






What are the transaction properties?

570


Can two different columns be merged into single column? Show practically?

616


What happens if date-only values are provided as date and time literals?

555


In one interview...interviewer ask me question pleas tell me sql server architecture.. can any body tell me the sql server architecture with digram

1526


Which database stores information about replication?

563


Explain collation?

634


Explain the first normal form(1nf)?

571


What is the difference between clustered index and primary key?

515


What are translations and its use? : sql server analysis services, ssas

616


What factors you will consider calculating the storage requirement for that view?

558