Hi Guys
I am trying to consolidate our Booking databases into one... And I have a problem which comes from the data.
Currently, an individual booking databse is setup for each Event that our company hosts.
The old structure the following key fields
BookingRef: Autonumber
ContactID: Long Integer
What I have designed so far is a table which will store all Bookings for all Events, with the design as below..
BookingRef: Autonumber
ContactID: Long Integer
EventID: Long Integer
Both ContactID and EventID form a Compound Key..
This all would work fine based on a Contact can only have one booking per Event.
My issue now is that looking at the existing booking data to be loaded into the table, there is an overlap with Booking References...
For example.. Booking Ref 1000 exists in both Event A and Event B..
In my head I could work around this by changing field BookingRef to a Long Integer, and enforcing seperate a unique constraint on BookingRef and EventID, whilst still keeping the existing compound key I have created..
Anyone know if this can be done, or alternatively have any other ideas on how to solve this issue
Vince
I am trying to consolidate our Booking databases into one... And I have a problem which comes from the data.
Currently, an individual booking databse is setup for each Event that our company hosts.
The old structure the following key fields
BookingRef: Autonumber
ContactID: Long Integer
What I have designed so far is a table which will store all Bookings for all Events, with the design as below..
BookingRef: Autonumber
ContactID: Long Integer
EventID: Long Integer
Both ContactID and EventID form a Compound Key..
This all would work fine based on a Contact can only have one booking per Event.
My issue now is that looking at the existing booking data to be loaded into the table, there is an overlap with Booking References...
For example.. Booking Ref 1000 exists in both Event A and Event B..
In my head I could work around this by changing field BookingRef to a Long Integer, and enforcing seperate a unique constraint on BookingRef and EventID, whilst still keeping the existing compound key I have created..
Anyone know if this can be done, or alternatively have any other ideas on how to solve this issue
Vince