Question
A library database records the authors and the publisher of each book. Normalize the following relation and indicate the primary and foreign key attribute types:
A library database records the authors and the publisher of each book. Normalize the following relation and indicate the primary and foreign key attribute types:
R (ISBN, title, author(name, date_of_birth), publisher(name, address(streetnr, streetname, zipcode, city)), pages, price)
The assumptions are:
each book has a unique ISBN number;
each author has a unique name;
each publisher has a unique name;
a book can have multiple authors;
an author can write more than one book;
a publisher can publish more than one book;
a book has only one publisher;
a publisher has only one address.
Suppose that one book can have multiple publishers. How can you extend your model to accommodate this? Where would you put the attribute type number_of_copies?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started