Aptitude | GATE CS 1998 | Question 62
Suppose we have a database consisting of the following three relations.
FREQUENTS(student, parlor) giving the parlors each student visits. SERVES(parlor, ice-cream) indicating what kind of ice-creams each parlor serves. LIKES(student, ice-cream) indicating what ice-creams each parlor serves. (Assuming that each student likes at least one ice-cream and frequents at least one parlor)
Express the following in SQL:
Print the students that frequent at least one parlor that serves some ice-cream that they like.
Answer:
Explanation:
Quiz of this Question
Recommended Posts:
- Aptitude | GATE CS 1998 | Question 19
- Aptitude | GATE CS 1998 | Question 20
- Aptitude | GATE CS 1998 | Question 46
- Aptitude | GATE CS 1998 | Question 47
- Aptitude | GATE CS 1998 | Question 21
- Aptitude | GATE CS 1998 | Question 23
- Aptitude | GATE CS 1998 | Question 24
- Aptitude | GATE CS 1998 | Question 25
- Aptitude | GATE CS 1998 | Question 48
- Aptitude | GATE CS 1998 | Question 28
- Aptitude | GATE CS 1998 | Question 29
- Aptitude | GATE CS 1998 | Question 30
- Aptitude | GATE CS 1998 | Question 31
- Aptitude | GATE CS 1998 | Question 74
- Aptitude | GATE CS 1998 | Question 75



