Results 1 to 4 of 4

Thread: Database design

  1. #1
    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

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Moved to Database Concepts & Design topic
    George
    Home | Blog

  3. #3
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    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
    Home | Blog

  4. #4
    Join Date
    Dec 2007
    Location
    London, UK
    Posts
    741
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •