Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formal Relationship between 4 tables

Status
Not open for further replies.

ClaytonQ

Programmer
Sep 17, 2003
33
US
I have a situation where I have three tables (InternalEvents, ExternalEvents, Classes) that each need access to a RoomReservations table. Each event or class may reserve multiple rooms, so each of those is on the one side of a one-to-zero-or-many relationship with RoomReservations.

The RoomReservations table is basically just a join table between these three tables and the Rooms table. So, in the RoomReservations table, each row will list the Room being reserved, and the class, internal event, or external event which is reserving it.

My problem is with referential integrity. Is there a way to tell the RoomReservations table that each row must correspond with a row in one of the three tables?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top