Sail E0 Webinar
Question
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')
Options:
A .  Find the sailor IDs of all sailors who have reserved red boats but not green boats
B .  Find the sailor IDs of at least one sailor who have reserved red boats but not green boats
C .  Find the sailor Ids of atmost one sailor who have reserved red boats but not green boats
D .  None of These
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers