Information Management Exercise 3 Questions: Isbn Book Title Publisher Edition

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Information Management

Exercise 3

QUESTIONS

1. The dependency diagram in Figure below indicates that authors are paid royalties for each

book they write for a publisher. The amount of the royalty can vary by author, by book, and by

edition of the book.

a. Based on the dependency diagram, create a database whose tables are at least in 2NF,

showing the dependency diagram for each table.

ANSWER

ISBN BOOK TITLE PUBLISHER EDITION

AUTHOR_NUM LASTNAME

ISBN AUTHOR_NUM ROYALTY

b. Create a database whose tables are at least in 3NF, showing the dependency diagram for

each table.
ANSWER

ISBN BOOK TITLE EDITION

BOOK TITLE PUBLISHER

AUTHOR_NUM LASTNAME

ISBN AUTHOR_NUM ROYALTY

2. Using the descriptions of the attributes given in the figure, convert the ERD shown in Figure

below into a dependency diagram that is in at least 3NF.

ANSWER

3. Using the INVOICE table structure shown in table below, do the following:
a. Write the relational schema, draw its dependency diagram, and identify all dependencies,

including all partial and transitive dependencies. You can assume that the table does not contain

repeating groups and that an invoice number references more than one product. (Hint: This

table uses a composite primary key.)

ANSWER

INV_NUM, PROD_NUM,SALE_DATE,PROD_LABEL,VEND_CODE,VEND_NAME,QUANT_SOLD,PROD_PRICE

b. Remove all partial dependencies, write the relational schema, and draw the new dependency

diagrams. Identify the normal forms for each table structure you created.
Q
P
IU
R
ANSWER
NA
O
VN
D
_T_
_
NS Third Normal Form (3NF)
N
UO
U
ML
M
D

S
I
A Third Normal Form (3NF)
N
LE
V
_
_
D
N
A
U
TV
M
PPEPVE
RRRE
N
OOO N
D Second Normal Form (2NF) because it
DDDD
_ contain a transitive dependency
__P
_L_C Transitive dependency
N
NARIO
A
UBCD
M
M
EL EE
c. Remove all transitive dependencies, write the relational schema, and draw the new

dependency diagrams. Also identify the normal forms for each table structure you created.

ANSWER

Third Normal Form (3NF)

INV_NUM PROD_NUM QUANT_SOLD

Third Normal Form (3NF)


INV_NUM SALE_DATE

VEND_NAME Third Normal Form (3NF)


VEND_CODE

Third Normal Form (3NF)

PROD_NUM PROD_LABEL PROD_PRICE VEND_CODE

d. Draw the Crow’s Foot ERD.

ANSWER

You might also like