Click here to Skip to main content
15,905,558 members
Home / Discussions / Database
   

Database

 
AnswerRe: How do you handle Dev DB vs Production DB? Pin
Mycroft Holmes29-Mar-10 18:54
professionalMycroft Holmes29-Mar-10 18:54 
QuestionDatabase design question Pin
Alivemau529-Mar-10 4:00
Alivemau529-Mar-10 4:00 
AnswerRe: Database design question Pin
J4amieC29-Mar-10 4:56
J4amieC29-Mar-10 4:56 
GeneralRe: Database design question Pin
Alivemau529-Mar-10 5:01
Alivemau529-Mar-10 5:01 
GeneralRe: Database design question Pin
J4amieC29-Mar-10 5:17
J4amieC29-Mar-10 5:17 
GeneralRe: Database design question Pin
Alivemau529-Mar-10 6:24
Alivemau529-Mar-10 6:24 
GeneralRe: Database design question Pin
programmervb.netc++29-Mar-10 9:11
programmervb.netc++29-Mar-10 9:11 
AnswerRe: Database design question Pin
riced29-Mar-10 5:57
riced29-Mar-10 5:57 
Depends on what questions you want to answer.
If the only question you want to answer is 'What is the status of a match?' then first suggestion is good enough. This effectively means you have a one-one relation between matches and statuses.

If you want to answer questions like 'What were half-time and full-time scores of a match?' then you have a one-many relation between matches and statuses so you need to use your second suggestion.

Your third suggestion seems to offend first order normalization.

I'd go for the second approach because it's more flexible. This may also mean moving some columns from Matches into the statuses table (e.g. the score since you have both half and full time scores).
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis

GeneralRe: Database design question Pin
Alivemau529-Mar-10 6:30
Alivemau529-Mar-10 6:30 
AnswerRe: Database design question Pin
Eddy Vluggen29-Mar-10 7:01
professionalEddy Vluggen29-Mar-10 7:01 
AnswerRe: Database design question Pin
programmervb.netc++29-Mar-10 8:53
programmervb.netc++29-Mar-10 8:53 
AnswerRe: Database design question Pin
PIEBALDconsult29-Mar-10 18:12
mvePIEBALDconsult29-Mar-10 18:12 
GeneralRe: Database design question Pin
Alivemau530-Mar-10 10:44
Alivemau530-Mar-10 10:44 
GeneralRe: Database design question Pin
PIEBALDconsult30-Mar-10 12:09
mvePIEBALDconsult30-Mar-10 12:09 
Questionhow to check this date is 6 months or 1 year for given condition Pin
developerit29-Mar-10 3:55
developerit29-Mar-10 3:55 
AnswerRe: how to check this date is 6 months or 1 year for given condition Pin
Eddy Vluggen29-Mar-10 7:08
professionalEddy Vluggen29-Mar-10 7:08 
QuestionSQL Query Pin
dabuskol29-Mar-10 2:10
dabuskol29-Mar-10 2:10 
AnswerRe: SQL Query Pin
Michael J. Eber29-Mar-10 11:26
Michael J. Eber29-Mar-10 11:26 
QuestionIs this query bad.....? Pin
Hum Dum29-Mar-10 1:18
Hum Dum29-Mar-10 1:18 
AnswerRe: Is this query bad.....? Pin
PSK_29-Mar-10 1:30
PSK_29-Mar-10 1:30 
GeneralRe: Is this query bad.....? Pin
programmervb.netc++29-Mar-10 9:24
programmervb.netc++29-Mar-10 9:24 
GeneralRe: Is this query bad.....? Pin
PSK_29-Mar-10 17:26
PSK_29-Mar-10 17:26 
AnswerRe: Is this query bad.....? Pin
Don Burton29-Mar-10 9:25
Don Burton29-Mar-10 9:25 
QuestionTables in database. Pin
MathewPV29-Mar-10 0:57
MathewPV29-Mar-10 0:57 
AnswerRe: Tables in database. Pin
R. Giskard Reventlov29-Mar-10 1:56
R. Giskard Reventlov29-Mar-10 1:56 

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.