Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instruction: Design, develop, and implement the specified queries for the following problems. Experiment: Consider the following schema for a Library Database: BOOK(Book_id, Title, Publisher_Name, Pub_Year)

Instruction: Design, develop, and implement the specified queries for the following problems.

Experiment:

Consider the following schema for a Library Database:
BOOK(Book_id, Title, Publisher_Name, Pub_Year)
BOOK_AUTHORS(Book_id, Author_Name)
PUBLISHER(Name, Address, Phone)
BOOK_COPIES(Book_idu, Programme_id, No-of_Copies)
BOOK_LENDING(Book_id, Programme_id, Card_No, Date_Out, Due_Date)
LIBRARY_PROGRAMME(Programme_id, Programme_Name, Address)

Write SQL queries to-
1.Retrieve details of all books in the library – id, title, name of publisher, authors, number of copies in each Programme, etc.

2.Get the particulars of borrowers who have borrowed more than 3 books, but from Jan 2020 to Jun 2021.

2.Delete a book in the BOOK table. Update the contents of other tables to reflect this data manipulation operation.

4.Partition the BOOK table based on year of publication. Demonstrate its working with a simple query.

5.Create a view of all books and the number of copies that are currently available in the Library.

Step by Step Solution

3.50 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

SOLUTION Retrieve details of all books in the library id title name of publisher authors number of c... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
63640f0fb7a3d_238985.pdf

180 KBs PDF File

Word file Icon
63640f0fb7a3d_238985.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals of Database Systems

Authors: Ramez Elmasri, Shamkant Navathe

6th edition

136086209, 978-0136086208

More Books

Students also viewed these Databases questions

Question

Find the directive gain and directivity of the small loop antenna.

Answered: 1 week ago

Question

Find (4) if 0 x (t) dt = x cos x.

Answered: 1 week ago