I have two tables, a Performance table and a Ticket table. The Performance table stores information on performances such as the name, time, date, production cost etc. and the Ticket table stores information on the seats such as seat number, ticket cost and whether it has been booked.
There are 160 seats and they are all stored in the Ticket table. For each performance in the Performance table I need to store whether each 160 seats has been booked for that performance.
One solution would be to have a ticket table for each performance, and another would be to have 160 entries in the Ticket table every time I added a performance but I was wondering if there was an easier way to do this.
thanks in advance,
~Polin
There are 160 seats and they are all stored in the Ticket table. For each performance in the Performance table I need to store whether each 160 seats has been booked for that performance.
One solution would be to have a ticket table for each performance, and another would be to have 160 entries in the Ticket table every time I added a performance but I was wondering if there was an easier way to do this.
thanks in advance,
~Polin