Question: Solve the following question in SQL Database Design: Question: 1. Conduct social comparison analysis, i.e., for each user, list out his or her weekly average

Solve the following question in SQL

Database Design:

Solve the following question in SQL Database Design: Question: 1. Conduct social

Question:

1. Conduct social comparison analysis, i.e., for each user, list out his or her weekly average activity distance and weekly average activity duration.

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

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!