Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i. What is the maximum number of branches that a reader has borrowed at least two different book titles from each branch? ii. Which book

image text in transcribed

i. What is the maximum number of branches that a reader has borrowed at least two different book titles from each branch?

ii. Which book title with at least two authors have the maximum number of copies overall in all branches? (20 p)

iii. Which readers have borrowed at least a title from all except one of the whole branches of the library? (20 p)

iv. Which branches of the library have at least one copy for two Dan Brown written book titles currently available for loan?

Part-II Assume you have three entity sets and only one relationship set between them. Illustrate and discuss all scenarios (different mapping cardinalities and participations) that will affect the relations to be obtained from the E-R diagram drawn

Write the following queries in SQL, using the relational database below: book book-id , title, publisher-name) book-authors book-id , author-name) publisher publisher-name, address, phone) book-copies( book-id, branch-id, no-of-copies) book-loans book-id, branch-id, card-no, date-out, return-date) library-branch( branch-id, branch-name, address) borrower card-no , name, address, phone)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2018 Dublin Ireland September 10 14 2018 Proceedings Part 1 Lnai 11051

Authors: Michele Berlingerio ,Francesco Bonchi ,Thomas Gartner ,Neil Hurley ,Georgiana Ifrim

1st Edition

3030109240, 978-3030109240

More Books

Students also viewed these Databases questions

Question

The spinner below is spun. P(even | shaded)= 8 5 7 9 2 4 6

Answered: 1 week ago

Question

7. Discuss the implications of a skill-based pay plan for training.

Answered: 1 week ago

Question

4. Make recommendations on steps to take to melt the glass ceiling.

Answered: 1 week ago