Q:

What does the following query find?

belongs to collection: DBMS - SQL MCQ

0

What does the following query find?

(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'red')
MINUS
(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'green')


  1. Find the sailor IDs of all sailors who have reserved red boats but not green boats
  2. Find the sailor IDs of at least one sailor who have reserved red boats but not green boats
  3. Find the sailor Ids of atmost one sailor who have reserved red boats but not green boats
  4. None of These

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(a).Find the sailor IDs of all sailors who have reserved red boats but not green boats

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

DBMS - SQL MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which of the following query finds the name of the... >>
<< Which of the following query finds colors of boats...