tom22london
Programmer
how shall i find the total value of all books the borrowers have currently on loan, where the total value is at least £20 for each borrower.
Following are tables,
Borrower (bor_id, bor_name, bor_maxbooks)
Book_title (bt_id, bt_name,pub_id, value)
Book_copy (bc_id, bt_id*, date acquired)
Loan (bor_id, bc_id, date_out, date_due, date_back)
Publisher (pub_id, pub_name, pub_address)
Author (author_id, author_name)
Authorship (author_id, bt_id)
----------------------------------------------------------
Following are tables,
Borrower (bor_id, bor_name, bor_maxbooks)
Book_title (bt_id, bt_name,pub_id, value)
Book_copy (bc_id, bt_id*, date acquired)
Loan (bor_id, bc_id, date_out, date_due, date_back)
Publisher (pub_id, pub_name, pub_address)
Author (author_id, author_name)
Authorship (author_id, bt_id)
----------------------------------------------------------