Find all students who do not appear in the likes table as a


Students at your hometown high school have decided to organize their social network using databases.

So far, they have collected information about sixteen students in four grades, 9-12. Here's the schema:

Highschooler ( ID, name, grade ): there is a high school student with unique ID and a given first name in a certain grade. Friend ( ID1, ID2 ): the student with ID1 is friends with the student with ID2.

Friendship is mutual, so if (123, 456) is in the Friend table, so is (456, 123). Likes ( ID1, ID2 ): the student with ID1 likes the student with ID2. Liking someone is not necessarily mutual, so if (123, 456) is in the Likes table, there is no guarantee that (456, 123) is also present.

Create SQL Queries to Find:

1. Find the names of all students who are friends with someone named Gabriel.

2. Find all students who do not appear in the Likes table (as a student who likes or is liked) and return their names and grades. 3. Find the name and grade of all students who are liked by more than one other student.

3. For every student who likes someone 2 or more grades younger than themselves, return that student's name and grade, and the name and grade of the student they like.

Request for Solution File

Ask an Expert for Answer!!
Dissertation: Find all students who do not appear in the likes table as a
Reference No:- TGS02931487

Expected delivery within 24 Hours