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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-08, 11:38
garric garric is offline
Registered User
 
Join Date: Sep 2006
Posts: 2
Database design

Hi All,

I am trying to design a database which will collect data on the people coming to a particular swimming pool divided by age groups. For one such pool, I want to be collecting data once a day. There are more than 1000 such swimming pools I want to collect data on.

Now I want to use this database to be able to provide a reporting facility through a front end.

The problem is how I go about designing it. Should I have one table for each pool, and another table having the list of pools. Or should I have one table where the primary key is <poolname>.<day-time> and have all data in one table.

My concern is how do I measure the performance criterion without actually building a database. any other pointers on what to consider while designing this will also help.

Thanks in advance,

Regards,
garric
Reply With Quote
  #2 (permalink)  
Old 08-22-08, 04:49
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Moved to Database Concepts & Design topic
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 08-22-08, 04:52
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Quote:
Originally Posted by garric
Should I have one table for each pool, and another table having the list of pools. Or should I have one table where the primary key is <poolname>.<day-time> and have all data in one table.
You should not have one table for each pool.
If you were to bung it all in one table, what data would be stored on each row i.e. what would the table look like.
__________________
George
Twitter | Blog
Reply With Quote
  #4 (permalink)  
Old 08-22-08, 17:18
dportas dportas is offline
Registered User
 
Join Date: Dec 2007
Location: London, UK
Posts: 732
Stop worrying about performance. Model first. Optimise later.

Have you designed a database before? If not, then first take a course or study a good book.

It seems that the attributes you need are: PoolName, Date, AgeGroup, NumberOfPeople. There is no sensible reason to have a table for each pool.
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