Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. For each situation where TA X reviews TA Y, and TA Y reviews different TA Z, return the result in following format X reviews

image text in transcribed

3. For each situation where TA X reviews TA Y, and TA Y reviews different TA Z, return the result in following format X reviews Y, and Y reviews Z, and rename the column as Message. Message Ananna reviews Chandra, and Chandra reviews Gazi Gonesh reviews Alamin, and Alamin reviews Kashfia 4. Return the average number of friends per TA? (Your result should be just one number.) Hint: Read the description of FRIEND table again to find out the mutual status. AVG Friend 2.5000 5. Find all TAs' who do not appear in the review_ta table (as a TA who likes or is liked) and return their names and grades. Sort by gpa, then by name. gpa Jahid 3.36 name 2 Laila 3.66 Tania 3.66 6. Find the number of TAs who are either friends with Chandra or are friends of friends of Chandra. (Do not count Chandra, even though technically she is a friend of a friend). COUNT(*) 7 3. For each situation where TA X reviews TA Y, and TA Y reviews different TA Z, return the result in following format X reviews Y, and Y reviews Z, and rename the column as Message. Message Ananna reviews Chandra, and Chandra reviews Gazi Gonesh reviews Alamin, and Alamin reviews Kashfia 4. Return the average number of friends per TA? (Your result should be just one number.) Hint: Read the description of FRIEND table again to find out the mutual status. AVG Friend 2.5000 5. Find all TAs' who do not appear in the review_ta table (as a TA who likes or is liked) and return their names and grades. Sort by gpa, then by name. gpa Jahid 3.36 name 2 Laila 3.66 Tania 3.66 6. Find the number of TAs who are either friends with Chandra or are friends of friends of Chandra. (Do not count Chandra, even though technically she is a friend of a friend). COUNT(*) 7

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago