Database Structure Question

  • Thread starter Thread starter Harperec
  • Start date Start date
H

Harperec

Hi All,

I've got a database with the structure given below. in the Booking
Table, I want to make sure that I don't get entries that have the same
date and TableID as another record. I was thinking that a
multiple-field primary key would be the way to acomplish this, but
reading up on those, they will create headaches in the long run. How
can I ensure that I won't double book a table on a particular date?
Thanks!

-eharper

tblTable
pkTableID
Venue
TableType
MaxPartySize

tblAvailableDates
pkDates

tblCustomers
pkCustomerID
LastName
FirstName
ContactInfo

tblVenue
pkVenueID

tblBookings
pkBookingID
Date <---
TableID <---
CustomerID
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top