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 > ERD help for course booking system

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-03-03, 19:53
ypx5269 ypx5269 is offline
Registered User
 
Join Date: Sep 2003
Posts: 35
ERD help for course booking system

Hi All,

I am designing a course booking database for a colleague who has a training company. I am unsure if I have the correct table structure. I originally had a more complex structure but came across the structure below in a book. I was concerned that it seemed too simplified but at the same time was unsure how I should model it. Are there any problems anyone can see with the simplified design below.

I originally had separate tables for ‘location’, ‘delegate’, ‘price’ and I also had ‘booking’, ‘booking line’ and a ‘period booked’ table. The problem was I did not know which table I would link up to course (booking line or period booked).

The requirements need to take into account course transfers, course cancellations, adding new locations, courses etc. The price of a course is negotiable so a course will not have a fixed price.

I also need to cater for a callback facility (marketing purposes). I have not included this below as I am sure that I can model that ok, i.e. one company has many contacts, each contact may have many callbacks and each contact may have many reminders. That would involve a CONTACT, CALL BACK and REMINDER table.

My aim is to prototype this in MS Access, present it to my colleague and then implement in SQL Server 2000. He has two separate offices at the moment and I want to use ASP as the front end to SQL Server.

As the underlying table structure is important to get right I would appreciate any comments anyone would have.

---Booking Table---
bookingRef -pk
*companyId - fk
dateBooked
owner

---Company Table---
companyId - pk
name
add1
add2
add3
add4
county
postCode
telNo
ownerId


---Course Table---
courseCode - pk
courseTitle
courseDuration
courseCost


---Course Run Table---
courseCode - pk
courseRunNo - pk
courseRunDate
location
placesBooked

---Delegate Booking Table---
courseCode - pk
courseRunNo - pk
delegateName -pk
*bookingRef - fk

Many thanks for any help,

Mark
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