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)

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
Get step-by-step solutions from verified subject matter experts
