Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A. Find the names of all students who are friends with someone named Homer J. Simpson. B. For every pair of students who both like
A. Find the names of all students who are friends with someone named Homer J. Simpson.
B. For every pair of students who both like each other, return the name and status of both students.
C. Find all students who do not appear in the Likes table (as a student who likes or is liked) and
return their names and status. Sort by status, then by name within each status.
D. For every situation where student A likes student B,but we have no information about whom B
likes (that is, B does not appear as an ID1 in the Likes table),return A and B's names and status.
E. For each student A who likes student B where the two are not friends,but student B likes a
different student C,For all such trios, return the name and grade of A, B, and C.
F. Find the name and status of all students who are liked by more than one other student.
G. What is the average number of friends per student? (Your result should be just one number.)
H. Find the number of students who are either friends with Tom or are friends of Tom. Do not count
Tom, even though technically he is a friend of a friend.
I. Find the name and status of the student(s) with the greatest number of friends.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started