MCQs>IT & Programming>Microsoft SQL Server>Consider the following queries: A: select * from [tbl1] union select * from [tbl2]; B: select * from [tbl1] union all select * from [tbl2]; What is the difference between these two queries?
Microsoft SQL Server MCQs
Consider the following queries: A: select * from [tbl1] union select * from [tbl2]; B: select * from [tbl1] union all select * from [tbl2]; What is the difference between these two queries?
Answer
Correct Answer: Query A will return both result sets with duplicates removed; Query B will return both full result sets.
Explanation:
Note: This Question is unanswered, help us to find answer for this one