Answered step by step
Verified Expert Solution
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)
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 NameStep 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