Reference no: EM133294946
These are the table names and columns for this database question:
Books (BookID, BookName, Author, YearPublished)
Patrons (PatronsID, PatronsName, PatronsAddress, PatronsBirthday)
CheckInOut (TransactionID, PatronID, BookID, CheckOutDate, NumDay, ReturnDate, Late, Fees, Paid)
1. Create function and a trigger for when the book is past due, a fee of $1.00 per day is added to the Fees field for the corresponding TransactionID. Create test data for this scenario and show the before and after images for this situation.