Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an SQL statement for the following: Database Design: Explanation of database design: A user can follow another user (e.g. user1 can follow user2, and

Write an SQL statement for the following:

Database Design:

Explanation of database design: A user can follow another user (e.g. user1 can follow user2, and user2 can follow user1). A user can perform activities. A user's follower/followers can give the user likes on the activity the user has performed (e.g. user1 performs activity1, user2 follows user1, user2 can like user1's activity1)

image text in transcribed

SQL statement to write:

For each user, list out his/her followers, who have given him/her >= 5 Likes for each month's activities.

Likes User luser ID User ID gives User Name Activity ID Follows performs Activity Activity ID User ID Activity Date Activity Name

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago

Question

7. Where Do We Begin?

Answered: 1 week ago