i'm creating a project in vb.net with MS Access database, I've got a form to return a cd by just entering the cds id.
What i want it to do is add a fine to the user if the movie is late and then add it. So i know i need to times the price by dayslate then add it to. I have 4 tables and these are
Rent table contains:
cd_id, Member_id, date rented, datedueback, returnedDate, dayslate
cd table:
cd_id, title, price_band
price band:
price_band, price, daysRent
Member:
Member_id, name, fines, noof_cds_rented
what would the SQL be to do this?
What i want it to do is add a fine to the user if the movie is late and then add it. So i know i need to times the price by dayslate then add it to. I have 4 tables and these are
Rent table contains:
cd_id, Member_id, date rented, datedueback, returnedDate, dayslate
cd table:
cd_id, title, price_band
price band:
price_band, price, daysRent
Member:
Member_id, name, fines, noof_cds_rented
what would the SQL be to do this?