0% found this document useful (0 votes)
50 views1 page

ER диаграма на базата от данни - PUBS относно предполагаеми дистрибутори на книги

The ER diagram summarizes the database tables for a book distributor called PUBS. It shows the relationships between tables like titles, publishers, sales, stores and discounts. Key fields link the tables together such as title_id connecting titles to sales and publishers tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views1 page

ER диаграма на базата от данни - PUBS относно предполагаеми дистрибутори на книги

The ER diagram summarizes the database tables for a book distributor called PUBS. It shows the relationships between tables like titles, publishers, sales, stores and discounts. Key fields link the tables together such as title_id connecting titles to sales and publishers tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

ER диаграма на базата от данни - PUBS относно предполагаеми дистрибутори на книги.

sales stores
stor_id char(4) stor_id char(4)
ord_num varchar(20) stor_name varchar(40)
stor_id = stor_id
ord_date datetime stor_address varchar(40)
stor_id = stor_id city varchar(20)
qty smallint
payterms varchar(12) state char(2)
title_id varchar(6) zip char(5)

title_id = title_id

titleauthor titles publishers discounts


au_id varchar(11) title_id varchar(6) pub_id char(4) discounttype varchar(40)
title_id varchar(6) title_id = title_id title varchar(80) pub_name varchar(40) stor_id char(4)
au_ord tinyint type char(12) pub_id = pub_id city varchar(20) lowqty smallint
royaltyper int pub_id char(4) state char(2) highqty smallint
price money country varchar(30) discount decimal
advance money
au_id = au_id
royalty int
ytd_sales int pub_id = pub_id
notes varchar(200)
authors pubdate datetime employee pub_info
au_id varchar(11) emp_id char(9) pub_id char(4)
au_lname varchar(40) fname varchar(20) pub_id = pub_id
logo image
au_fname varchar(20) title_id = title_id minit char pr_info text
phone char(12) lname varchar(30)
address varchar(40) job_id smallint
roysched
city varchar(20) job_lvl tinyint
title_id varchar(6)
state char(2) pub_id char(4)
lorange int
zip char(5) hire_date datetime
contract bit hirange int
royalty int authors_tmp
job_id = job_id
au_lname varchar(40)
au_fname varchar(20)
phone char(12)
jobs
address varchar(40)
job_id smallint
city varchar(20)
job_desc varchar(50) state char(2)
min_lvl tinyint zip char(5)
max_lvl tinyint

You might also like