Click here to Skip to main content
15,892,746 members
Home / Discussions / Database
   

Database

 
QuestionGroup ranking or row number Pin
Lash2029-Mar-10 9:29
Lash2029-Mar-10 9:29 
AnswerRe: Group ranking or row number Pin
programmervb.netc++29-Mar-10 9:36
programmervb.netc++29-Mar-10 9:36 
AnswerRe: Group ranking or row number Pin
Mycroft Holmes29-Mar-10 18:48
professionalMycroft Holmes29-Mar-10 18:48 
QuestionHow do you handle Dev DB vs Production DB? Pin
programmervb.netc++29-Mar-10 9:22
programmervb.netc++29-Mar-10 9:22 
AnswerRe: How do you handle Dev DB vs Production DB? Pin
PIEBALDconsult29-Mar-10 18:09
mvePIEBALDconsult29-Mar-10 18:09 
GeneralRe: How do you handle Dev DB vs Production DB? Pin
programmervb.netc++29-Mar-10 18:35
programmervb.netc++29-Mar-10 18:35 
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 
I have a table of football matches, and each match can have 5 different statuses:
Not started, 1st halftime, Break, 2nd halftime, Ended

My question is, what is the correct way of modeling this?:

Matches (MatchId, Status, ...)
where Status is an integer or a string corresponding to each status

vs

Matches (MatchId, StatusId, ...)
where StatusId is a foreign key to MatchStatuses,
MatchStatuses (MatchStatusId, Description)

vs

Matches (MatchId, StatusId, ...)
where StatusId is a foreign key to MatchStatuses,
MatchStatuses (MatchStatusId, Description, IsNotStarted, IsFirstHT, IsBreak, IsSecondHT, IsEnded)

for example, a registry in this case would be: (1, "First Half time", false, true, false, false, false)


THANKS!
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 
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 

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.