Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve the following with SQL statement Database Design: Question: Generate a list of First Positions with their Activity Date, User Name & Personal Best Detail.

Solve the following with SQL statement

Database Design:

image text in transcribed

Question:

  1. Generate a list of First Positions with their Activity Date, User Name & Personal Best Detail.
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

Students also viewed these Databases questions