Question: 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)

Write an SQL statement for the following: Database Design: Explanation of database

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!