Question:

Consider the following two tables emp1 and emp2:
emp1
IdName
1Amit
2Punita
emp2
IdName
1Punita
2Anand
What is the output of the following query?
SELECT name from emp1 minus SELECT name from emp2;

Updated On: Nov 4, 2024
  • Punita
  • Amit
  • Anand
  • Amit, Punita
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

The 'MINUS' operation returns the difference between two datasets. Here, the name "Amit" in emp1 is not present in emp2.
Was this answer helpful?
0
0