Appendix B: Database Schemas
Appendix B: Database Schemas
Appendix B: Database Schemas
street
city
state
zip copy
phone_no item
expr_date PK,FK1 isbn
PK isbn PK copy_no
title
juvenile
PK title_no
PK,FK2 member_no
title
FK1 adult_member_no author
birth_date synopsis
Pubs
stores
PK stor_id
discounts Database
stor_name Diagram
stor_address discounttype pub_info
city FK1 stor_id PK,FK1 pub_id
state lowqty
zip highqty logo
discount pr_info
titles employee
jobs
PK title_id publishers PK emp_id
sales PK job_id
PK pub_id
I1 title I1 fname
PK,FK1 stor_id type I1 minit job_desc
PK ord_num pub_name min_lvl
FK1 pub_id I1 lname
PK,FK2,I1 title_id city max_lvl
price FK1 job_id
state
advance job_lvl
ord_date country
royalty FK2 pub_id
qty ytd_sales hire_date
payterms notes
pubdate
authors
PK au_id
roysched titleauthor
I1 au_lname
FK1,I1 title_id PK,FK1,I1 au_id I1 au_fname
PK,FK2,I2 title_id phone
lorange address
hirange au_ord city
royalty royaltyper state
zip
contract
Joindb
Database
Diagram
Buyers
Produce
Sales PK buyer_id
PK prod_id
buyer_name
prod_name
FK1 buyer_id
FK2 prod_id
qty