Practice free →
HomeGATE CSEcomputerscienceDatabase Management Systems › If $R$ is your playlist and $S$ is your friend's…

If $R$ is your playlist and $S$ is your friend's, then $R - S$ returns

Aevery song in at least one of the playlists
Bsongs in your playlist that are NOT in your friend's
Csongs in both playlists
Dsongs in your friend's playlist that are not in yours
Answer & Solution
Correct answer: B. songs in your playlist that are NOT in your friend's
Difference keeps tuples from the first input that are NOT in the second. Order matters: $R - S$ is your-only; $S - R$ is friend-only. Songs in both would be intersection; in at least one is union.
Solve this in the app — GATE CSE practice & 24k+ MCQs →
Related questions