Hi acwest, instead of deleting data from from the LoanHistory table from CDCopy table, just consider to change the status of the cd to be "Returned", "Borrowed" etc.
Deleting of any record is not a good idea for inserting new records, rather you can make the CD's status to "Returned" &...