sql 1. List all details of books with ‘Database’ related titles published between year 2012 to 2020. 2. List all copies of the book titled ‘Lord of the Rings’. 3. How many copies of ISBN ‘0-321-52306-7’ are there? Give any new column an alias. 4. List the library members who are expected to return their books that are due on ’30-Apr2021’. 5. List library members who have not borrowed any books yet in 2021. Show only the borrowerNo. 6. For copies of books that are still available (‘Y’ for available), show their ISBN and number of copies. Sort them according to descending order of number of copies. Give any new column an alias.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

sql

1. List all details of books with ‘Database’ related titles published between year 2012 to 2020.

2. List all copies of the book titled ‘Lord of the Rings’.

3. How many copies of ISBN ‘0-321-52306-7’ are there? Give any new column an alias.

4. List the library members who are expected to return their books that are due on ’30-Apr2021’.

5. List library members who have not borrowed any books yet in 2021. Show only the
borrowerNo.

6. For copies of books that are still available (‘Y’ for available), show their ISBN and number of copies. Sort them according to descending order of number of copies. Give any new column an alias.

The following tables form part of a Library database held in an RDBMS:
Book (ISBN, title, edition, year)
BookCopy (copyNo, ISBN, available)
Borrower (borrowerNo, borrowerName, borrowerAddress)
Bookloan (copyNo, dateOut, dateDue, borrowerNo)
where Book contains details of book titles in the library and the ISBN (International Standard Book Number) is the key.
BookCopy contains details of the individual copies of books in the library and copyNo is the key. ISBN is a foreign key
identifying the book title.
Borrower contains details of library members who can borrow books and borrowerNo is the key.
BookLoan contains details of the book copies that are borrowed by library members and copyNo/dateOut forms the key.
borrowerNo is a foreign key identifying the borrower.
PART
Transcribed Image Text:The following tables form part of a Library database held in an RDBMS: Book (ISBN, title, edition, year) BookCopy (copyNo, ISBN, available) Borrower (borrowerNo, borrowerName, borrowerAddress) Bookloan (copyNo, dateOut, dateDue, borrowerNo) where Book contains details of book titles in the library and the ISBN (International Standard Book Number) is the key. BookCopy contains details of the individual copies of books in the library and copyNo is the key. ISBN is a foreign key identifying the book title. Borrower contains details of library members who can borrow books and borrowerNo is the key. BookLoan contains details of the book copies that are borrowed by library members and copyNo/dateOut forms the key. borrowerNo is a foreign key identifying the borrower. PART
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY