Question: Solve the question with an SQL statement Database Design: Question: Compute monthly active social networks, i.e., for each user, list out his/her followers, who have
Solve the question with an SQL statement
Database Design:

Question:
- Compute monthly active social networks, i.e., for each user, list out his/her followers, who have given him/her >=5 Kudos for each months activities
Challenge PK Challengels (OM) ChallengeName has followship (OM) User joins (1,M) PK UserID Club UserName (1,M) 10.M) -joins PK ClubID (OM) Gender ClubName (1,1) (1,M) gives Age (1,1) (1.1) gives Email (1,M) (0,1) owns (0,1) has Comment performs Kudo (0,M) PK CommentID UserID (OM) WeeklyLeaderboard PK CommentContent (0.M) ActivityID PK Activity LeaderboardID FK UserID (0,1) ActivityID FK ActivityID FK ClubID (1,1) ActivityDate LeaderboardDate on (0.1) (1,1) on ActivityStartTime FK FirstPos_UserID ActivityDuration FK SecondPos_UserID PersonalBest Activity Distance FK Thirdpos_UserID PK PersonalbestID ActivityPace FK FourthPos_UserID (0,1) (1,1) FK ActivityID Activity Name FK FifthPos_UserID PersonalBest Type Activity Type FK SixthPos_UserID PersonalBestDetail FK SeventhPos UserID ActivitySport Description FK EighthPos_UserID PrivacyControls FK NinthPos_UserID FK UserID FK TenthPos_UserID Challenge PK Challengels (OM) ChallengeName has followship (OM) User joins (1,M) PK UserID Club UserName (1,M) 10.M) -joins PK ClubID (OM) Gender ClubName (1,1) (1,M) gives Age (1,1) (1.1) gives Email (1,M) (0,1) owns (0,1) has Comment performs Kudo (0,M) PK CommentID UserID (OM) WeeklyLeaderboard PK CommentContent (0.M) ActivityID PK Activity LeaderboardID FK UserID (0,1) ActivityID FK ActivityID FK ClubID (1,1) ActivityDate LeaderboardDate on (0.1) (1,1) on ActivityStartTime FK FirstPos_UserID ActivityDuration FK SecondPos_UserID PersonalBest Activity Distance FK Thirdpos_UserID PK PersonalbestID ActivityPace FK FourthPos_UserID (0,1) (1,1) FK ActivityID Activity Name FK FifthPos_UserID PersonalBest Type Activity Type FK SixthPos_UserID PersonalBestDetail FK SeventhPos UserID ActivitySport Description FK EighthPos_UserID PrivacyControls FK NinthPos_UserID FK UserID FK TenthPos_UserID
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
