If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Database design issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-15-08, 22:04
nick2price nick2price is offline
Registered User
 
Join Date: Aug 2008
Posts: 16
Database design issue

I have been given a senario on a swimming meet. The scenarion is:

You'll have one or more meets, each of which will have a given place and time associated with it.

A meet will have one or more events (e.g., 50 m freestyle, 4x100 freestyle relay, etc.).

An event will have one or more heats.

A heat will have zero or more individuals entered.

Each individual will have a time associated with their heat.

You'll have rules to design how to seed people and determine winners (usually "fastest is best").

Somehow i have to turn this into a database but i have no idea where to start. This is for a java program and i have some sql knowledge but i really am no good at designing the database so that everything links with each other through the appropiate primary keys etc.
Any help would be great
Reply With Quote
  #2 (permalink)  
Old 08-15-08, 22:52
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
there are three scenarios for how you ended up being given your scenario

either your brother-in-law is the general manager of the swimming association and he promised his wife he'd let her brother build the web site

or you've just been promoted from the print room to the web development team at your company, and they're giving you your first database project to see how you do and what you know

or this is a homework assignment and you're looking for help in getting started, and maybe some guidance to help you get a good mark

which of the above scenarios is it, and make sure you answer honestly, okay?
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 08-16-08, 11:33
nick2price nick2price is offline
Registered User
 
Join Date: Aug 2008
Posts: 16
Close. I am actually a student studying java, and this girl i fancy has asked me to help her with her java coursework, but it also involves JDBC which i have not studied yet. I have done some basic sql but never had to design the database. As i say, i am a java student not db student. Who knows, if you give me some advise, you could be participating in the start of a beautiful relationship (with the girl, not you, lol) and helping a fellow bloke get laid.
Reply With Quote
  #4 (permalink)  
Old 08-16-08, 11:37
nick2price nick2price is offline
Registered User
 
Join Date: Aug 2008
Posts: 16
This is what i have done, dont know if it is ok though
Meet(meetID, place, time)
Event(eventID, meetID, description)
Heat(heatID, eventID, description, when)
Individual(individualID, name)
HeatIndividual(heatID, individualID, score)
Reply With Quote
  #5 (permalink)  
Old 08-16-08, 11:55
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
that's an excellent start

give that to her, and good luck
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On