In: Computer Science
The following tables form a Library database held in an RDBMS:
Borrower (card_no , last_name , first_name , address , city ,
state , zip )
Books (ISBN, title, pub_date , pub_id , list_price, category_id,
pub_id)
Categories (category_id, category_desc)
Author (author_id , last_name , first_name)
Bookauthor (ISBN, author_id)
Publisher (pub_id, name, contact, phone)
Bookloans (ISBN, branch_id, card_no , date_out, due_date)
Bookcopies (ISBN, branch_id , no_of_copies)
Branch (branch_id, branch_name, city)
Please use the standard join method, no implicit method
allowed.
Write SQL statements to perform the following queries:
1. Display the title of each book and the name and phone number of
the contact at the publisher’s office for reordering each book.
2. Which books were written by an author with the last name Steven? Perform the search using the author name.
3. Identify the authors of the books Leila Smith borrowed Perform the search using the borrower last name.
4. Display the most recent publication date of all books.
5. Display the list price of the least expensive book in the Computer Science category.
6. What’s the list price of the most expensive book written by Carlos Tim?
7. Display how many times each book title has been borrowed.
8. How many times has the book with ISBN “0401140733” been borrowed?