Академический Документы
Профессиональный Документы
Культура Документы
– Solution for an
efficient future
http://www.jigsaw-online.com/
http://www.bluefly.com/
http://www.usoutdoor.com/store/
Business Needs
We are interested in creating an efficient
database solution for Ultimate Ltd. – a kind of
solution that could solve problems, save time
and therefore money and answer managerial
problems quickly and correct.
Our product has to give automated answers for
queries like:
“How many products of type X have been
sold in the Y period of time?”
“What color was best sold in the X store in
the Y period of time?”
Information Requirements
Ultimate Ltd. needs up-to-date employee
information including name, telephone number,
birth date, salary, shifts assignments, and the
job he/she performs. We uniquely identify
employees by their CNP (the correspondent for
SSN in USA), or by a shorter artificial id. We
classify employees in shop assistants,
managers and “other”. The shop assistant that
sell the product is listed on the bill. Managers
supervise employees and also administrate one
or more warehouses.
Information Requirements
For each product we keep track of the producer
price, store price, description by different
properties, and its location history. It is also
assigned an artificial code.
Constraints:
The attribute end date must state a time later
in supervised by
appear PRICE
charge PRODUCER the
on
of manufacturer
for # id # start date
JOB HISTORY of
* address have * price
* telephone number
# start date made by
o profile assigned to
o end date
appear on
for have listed on
appear on
release location for
STORE represents
# id contain LOCATION HISTORY
* address CONTACT PERSON
* telephone number # id # start date
o profile * first name o end date
* last name
* telephone number
supervised by o e mail contain
listed on
WAREHOUSE E
# number listed on
contain R
* address
* telephone number D
Mapping the ERD
EMPLOYEES (EPE) PRODUCTS (PDT)
Key Optionality Column Key Optionality Column name
Type name Type
pk * CNP pk * code
pk * uid * producer_price
* first_name fk1 * pte_id
* last_name fk2 º bill_no
* tel_no fk3 * pdr_id
* birth_date
fk º mnr_id
* epe_type
Mapping the ERD
BILLS (BIL) LOCATIONS HISTORY (LHY)
* payment_type º end_date