Click here to Skip to main content
15,907,328 members
Home / Discussions / Database
   

Database

 
Questionsql server express installation Pin
Yulianto.14-Feb-10 22:38
Yulianto.14-Feb-10 22:38 
AnswerRe: sql server express installation Pin
Not Active15-Feb-10 1:38
mentorNot Active15-Feb-10 1:38 
GeneralRe: sql server express installation Pin
εїзεїзεїз16-Feb-10 1:41
εїзεїзεїз16-Feb-10 1:41 
GeneralRe: sql server express installation Pin
Not Active16-Feb-10 6:32
mentorNot Active16-Feb-10 6:32 
GeneralRe: sql server express installation Pin
εїзεїзεїз16-Feb-10 6:58
εїзεїзεїз16-Feb-10 6:58 
GeneralRe: sql server express installation Pin
Not Active16-Feb-10 7:10
mentorNot Active16-Feb-10 7:10 
AnswerRe: sql server express installation Pin
εїзεїзεїз16-Feb-10 1:40
εїзεїзεїз16-Feb-10 1:40 
Questionexercize database schema: need advice Pin
mbrownphysics14-Feb-10 14:04
mbrownphysics14-Feb-10 14:04 
Hi. I came to software development primarily through physics. I have a fair amount of experience, but not much of it has to do with databases. I'm building an exercise database for a web site, and I need some suggestions about schema.


The idea is to relate exercises to muscles. This, however, is overly simplistic. Any exercise can belong to a group of exercises, and there can be multiple variations of an exercise. For example, front squats and back squats are fundamentally different exercises, even though both are squats. Likewise, when doing a back squat, someone can go down until thighs are parallel, or go down until his rear is almost touching the ground. These are both back squats, but have quite different effects.

My initial thought was to have a table for exercise groups, exercises, and exercise variations. Along the same lines I would have a table for a muscle group, and another for muscles. All would have mutually exclusive unique id's. This way, in a single relational table (many to many relationship), a given row could have one field containing a muscle or a muscle group, and another field can contain an exercise group, and exercise, or an exercise variation.

Although this would be well normalised, I'm thinking that once I carry this on to a few other things (like heads, joints, etc) this could result in a lot of small tables. It is also somewhat limiting. What if I want a variation of a variation, for example?

My second idea was that muscles and muscle groups would be in one table. There would be a field called 'group'. 'vastus lateralis' would be related to 'quadriceps'. For 'quadriceps', this field would be blank. Likewise, in the exercise table, I would include exercises, exercise groups, and exercise variations. Then under the 'variation of' field, 'parallel squat' would be related to 'back squat', 'back squat' would be related to 'squat', and for 'squat' the field would be empty. This seems to me to be a more flexible approach, and would probably be easier to maintain, but like I said, I do not have the benefit of experience on this. Can anyone give me advice on this?

Thanks
Matt Brown
QuestionOrderBy Dilema Pin
danyDude14-Feb-10 11:53
danyDude14-Feb-10 11:53 
AnswerRe: OrderBy Dilema Pin
loyal ginger14-Feb-10 14:43
loyal ginger14-Feb-10 14:43 
GeneralRe: OrderBy Dilema Pin
danyDude14-Feb-10 15:46
danyDude14-Feb-10 15:46 
GeneralRe: OrderBy Dilema Pin
loyal ginger16-Feb-10 3:50
loyal ginger16-Feb-10 3:50 
GeneralRe: OrderBy Dilema Pin
danyDude17-Feb-10 20:56
danyDude17-Feb-10 20:56 
AnswerRe: OrderBy Dilema Pin
i.j.russell14-Feb-10 22:11
i.j.russell14-Feb-10 22:11 
QuestionMusic Database?? Pin
AmbiguousName12-Feb-10 23:35
AmbiguousName12-Feb-10 23:35 
AnswerRe: Music Database?? Pin
Andy_L_J13-Feb-10 0:10
Andy_L_J13-Feb-10 0:10 
GeneralRe: Music Database?? Pin
AmbiguousName13-Feb-10 1:05
AmbiguousName13-Feb-10 1:05 
GeneralRe: Music Database?? Pin
Richard MacCutchan13-Feb-10 2:20
mveRichard MacCutchan13-Feb-10 2:20 
GeneralRe: Music Database?? [modified] Pin
Andy_L_J13-Feb-10 9:34
Andy_L_J13-Feb-10 9:34 
GeneralRe: Music Database?? Pin
thatraja13-Feb-10 17:40
professionalthatraja13-Feb-10 17:40 
GeneralRe: Music Database?? Pin
AmbiguousName13-Feb-10 20:41
AmbiguousName13-Feb-10 20:41 
GeneralRe: Music Database?? Pin
Andy_L_J13-Feb-10 20:50
Andy_L_J13-Feb-10 20:50 
AnswerRe: Music Database?? Pin
dan!sh 13-Feb-10 2:32
professional dan!sh 13-Feb-10 2:32 
Questionsearch on xml field in table of sql server? Pin
Tridip Bhattacharjee11-Feb-10 21:38
professionalTridip Bhattacharjee11-Feb-10 21:38 
AnswerRe: search on xml field in table of sql server? Pin
Pranay Rana12-Feb-10 1:35
professionalPranay Rana12-Feb-10 1:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.