• +91 9723535972
  • info@interviewmaterial.com

MS SQL Interview Questions and Answers

Question - Explain UNION, MINUS, UNION ALL, INTERSECT?

Answer -

INTERSECT returns all distinct rows selected by both queries.

MINUS: returns all distinct rows selected by the first query but not by the second.

UNION: returns all distinct rows selected by either query

UNION  ALL:  returns  all  rows  selected  by  either query, including all duplicates

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners