What does the program do exactly?
Burnsy
I have used it many moons ago, and it is quite specialised. MS Visio may do what you're wanting, but there is other software out there.
have a field for each customer table called 'currently_renting' (or something) This value get's 1 added when they rent a book, and one subtracted when a book comes back.
The total of this will be how many books are out by customer, and if a rental query goes ahead, then it must be only if 'currently_renting' < 4....
Just an idea
Personally I would have table that details all rentals. rental_id, video_id, cust_id, date_out, date_in.
Select * FROM tblrentals WHERE cust_id = 'customersid' AND date_in = NULL
Will tell you how many rentals a customer has taken out. If > 3 no rental.
Personally I would have table that details all rentals. rental_id, video_id, cust_id, date_out, date_in.
Select * FROM tblrentals WHERE cust_id = 'customersid' AND date_in = NULL
Will tell you how many rentals a customer has taken out. If > 3 no rental.