Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Library Patrons Titles begin{tabular}{|l|l|l|} hline ISBN (string) & Title (string) & Author (string) hline & & hline end{tabular} Consider the Library database from

image text in transcribedimage text in transcribed

Library Patrons Titles \begin{tabular}{|l|l|l|} \hline ISBN (string) & Title (string) & Author (string) \\ \hline & & \\ \hline \end{tabular} Consider the Library database from class. Pick the appropriate key(s) for each description of the Library's meaning below. Give your answers in the following form: PK{x,y}UQ{i,j} Where PK denotes the primary key, and UQ denotes additional candidate key(s), if necessary, and x,y,i, and j are replaced with attribute names. Do not include any extra or unnecessary keys in your answer. Note: ignore the instance data given in the Library example in the slides - it will not necessarily match these problem descriptions. Instead, use the slide showing the schemas. Problem 3a) Give key(s) for the CheckedOut table such that a patron can only check out one book, and a book can only be checked out by one patron. Problem 3b) Give key(s) for the Titles table such that no two books can have the same ISBN, and an Author can publish multiple books, but not with the same Title, but different Authors can publish books with the same Title. Problem 3c) Give key(s) for the Titles table such that no two books can have the same ISBN, and an Author can publish multiple books, but not with the same Title, and different Authors can not publish books with the same Title. Problem 3d) Give key(s) for the Phones table such that a patron can have multiple different phone numbers, but multiple different patrons can not have the same phone number

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

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

More Books

Students also viewed these Databases questions

Question

14. Someone who can speak two languages

Answered: 1 week ago