Results 1 to 3 of 3
  1. #1
    Wabamdo is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    May 2015
    Posts
    13

    How to handle costs that change frequently in a school database


    Hi guys,I am developing a school database that has courses table in it.The COURSES table contains the following fields.
    ID,
    CourseName,
    Cost
    StartDate
    EndDate.

    The courses cost changes frequently .so how can I make sure that the change does not affect the records where the students took the course before the change.

    Thank you in advance for giving me your time

  2. #2
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    I would make a new table where the cost changes for each course are in.

    tblCost

    CourseName
    Cost
    CostBegin
    CostEnd

    This way you can allways look at the actual cost of a course and previous cost, using dates.
    You can use Dlookup or SQL to pull the data you need.

    Or you can put the cost in the data of the student. But that i think is not the way to go about it and would result in problems
    if a student takes more then one course for example.

  3. #3
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    There are 2 approaches to this generic database design question:

    1. linking: your post highlights the potential problem with linking in it changing the prices of past data - to manage this you must create new courses when there is new prices - and so the link of past courses doesn't change...and new students link to the new course record.

    2. write in: your course list has the current price - when a student takes a course - you write in the data from the course table into the student's table - thereby preserving that data in their record and remain independent of any changes/updates to the course list table.

    There is no right or wrong in terms of architecture. It is a matter of what is best for your requirement. Both have issues to manage. This question is also very common for any company managing a Part List.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. School Transportation Database
    By SMOORELCC1 in forum Database Design
    Replies: 1
    Last Post: 01-18-2013, 12:43 AM
  2. Best way to handle this Web Database
    By tucker1003 in forum Database Design
    Replies: 8
    Last Post: 03-18-2011, 12:14 PM
  3. Handling Inventory Costs That Change Over Time
    By mubtuhogar in forum Database Design
    Replies: 5
    Last Post: 10-12-2010, 09:19 AM
  4. School Enrollment Database
    By jpepin in forum Database Design
    Replies: 1
    Last Post: 04-08-2010, 05:23 PM
  5. Database Design for a School
    By FallingToaster in forum Database Design
    Replies: 2
    Last Post: 08-12-2009, 10:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums