You are on page 1of 3

Republic of the Philippines

CENTRAL BICOL STATE UNIVERSITY OF AGRICULTURE – SIPOCOT


College of Information Technology
Sipocot, Camarines Sur

DATABASE MANAGEMENT SYSTEM 2


SY 2019-2020

Quiz # 1

Name: ______________________________________________ Section: ___________

Draw an ERD for each of the following situations. (If you believe that you need to make
additional assumptions, clearly state them for each situation.) Afterwards, conduct
normalization.

Each publisher has a unique name; a mailing address and telephone number are also
kept on each publisher. A publisher publishes one or more books; a book is published
by exactly one publisher. A book is identified by its ISBN, and other attributes are title,
price, and number of pages. Each book is written by one or more authors; an author
writes one or more books, potentially for different publishers. Each author is uniquely
described by an author ID, and we know each author’s name and address. Each author
is paid a certain royalty rate on each book he or she authors, which potentially varies
for each book and for each author. An author receives a separate royalty check for each
book he or she writes. Each check is identified by its check number, and we also keep
track of the date and amount of the check.
ERD
ROYALTY RATE
PUBLISHER
Rate_Id
Pub_Id paid Rate_Amount paid
Pub_mail_add Author_Id
Pub_con_num Book_ISBN

BOOK AUTHOR
Book_ISBN Author_Id
published Book_title writes Author_fname
Book_price Author_mname
Book_num_page Author_lname
Pub_Id Author_add
Author_Id Book_ISBN

ROYALTY
CHECK
Check_num recieved
Check_date
Check_amount
Author_ID

NORMALIZATION

1NF PUBLISHER = Pub_Id, Pub_mail_add, Pub_con_num


BOOK = Book_ISBN, Book_title, Book_price, Book_num_page

BOOK = Book_ISBN, Book_title, Book_price, Book_num_page


AUTHOR = Author_Id, Author_fname, Author_mname, Author_lname,
Author_add

ROYALTY RATE = Rate_id, Rate_Amount


AUTHOR = Author_Id, Author_fname, Author_mname, Author_lname,
Author_add

BOOK = Book_ISBN, Book_title, Book_price, Book_num_page


ROYALTY RATE = Rate_id, Rate_Amount

ROYALTY CHECK = Check_num, Check_date, Check_amount


AUTHOR = Author_Id, Author_fname, Author_mname, Author_lname,
Author_add
2NF PUBLISHER = Pub_Id, Pub_mail_add, Pub_con_num
BOOK = Book_ISBN, Book_title, Book_price, Book_num_page, Pub_Id

BOOK = Book_ISBN, Book_title, Book_price, Book_num_page,


Author_Id
AUTHOR = Author_Id, Author_fname, Author_mname, Author_lname,
Author_add, Book_ISBN

ROYALTY RATE = Rate_Id, Rate_Amount, Author_Id


AUTHOR = Author_Id, Author_fname, Author_mname, Author_lname,
Author_add

ROYALTY RATE = Rate_Id, Rate_Amount, Book_ISBN


BOOK = Book_ISBN, Book_title, Book_price, Book_num_page

ROYALTY CHECK = Check_num, Check_date, Check_amount, Author_Id


AUTHOR = Author_Id, Author_fname, Author_mname, Author_lname,
Author_add

3NF BOOK = Book_ISBN, Book_title, Book_price, Book_num_page, Pub_Id,


Author_Id
AUTHOR = Author_Id, Author_fname, Author_mname, Author_lname,
Author_add, Book_ISBN

SUMMARY OF NORMALIZATION

PUBLISHER = Pub_Id, Pub_mail_add, Pub_con_num


BOOK = Book_ISBN, Book_title, Book_price, Book_num_page, Pub_Id,
Author_Id
AUTHOR = Author_Id, Author_fname, Author_mname, Author_lname,
Author_add, Book_ISBN
ROYALTY RATE = Rate_Id, Rate_Amount, Author_Id, Book_ISBN
ROYALTY CHECK = Check_num, Check_date, Check_amount, Author_Id

You might also like