You are on page 1of 3

Course name: DBMS.

Assignment I.

Submission: Due to deadline. Into Moodle LMS.

Submission format: Word or PDF document containing ER-Diagram of the


system and textual description of the solution.

Total points given: 100 pts.

In order to complete the task, students must follow the schedule below:

Main stages Task


1 ■ Analysis of the example of system processes determination
■ Entity determination
■ Attribute determination

2 ■ Normalization
■ ERD

3 ■ Primary and foreign keys determination


■ Relationships on tables
“Order Company”

Prerequisites.

“Order Company” – is a large online store, which is well known for the
quality of products, reasonable price level, services provided in time and the ability
to deliver orders to the client’s house. Store customers buy goods from different
countries.

System description.

Order Company has several departments in its structure. The system should
keep track of department ID, name, and location.
Each department has employees of different professions. They do team
project work. An employee may belong to only one department, but work on more
than one projects. In the system each employee has ID, first and last names, email,
phone, hire date, the id of his/her manager (if exists), salary, birth date, gender,
department, and job position. The job and description of the job activity should be
stored in a separate table.
For projects you need to store project ID, name, start and end dates, and a
project budget.
The system can show project activity for employees: ID of an employee, the
project he/she is involved, and hours worked.
For each customer the system should keep his ID, first name, last name,
email, gender, phone number and living place location.
Location is a table for storing map points including location id, city, street,
and postal code of a populated area. The geographical coverage of the company
includes different countries, so it was decided to store the names of countries and
cities in separate tables. In the table of cities, you can find city id, name, and a
country of origin. Table of countries has county id and name.
Our customers place orders in the system, each order is processed by an
employee of the company. Order should have id, order date and shipping date.
Products for our online store are provided by suppliers. We store their ids,
names, emails, phone numbers and warehouse locations. For the customer
convenience, we have divided all products into relevant categories, so the system
keeps category id and name.
Products placed in our service have id, name, price.
To ensure the best price for the customer, we check the products in the order
by the ids of the product and supplier, quantity ordered and a discount.
For drawing ER-Diagram you must perform the following tasks:

1. Read the text. Define entities and attributes. Some of the attributes are not listed
in text below (missed), so you need to add them according to the logic of the
system. (20 pts)
2. Put the tables in the Third Normal Form (3NF) if possible. For proving the
correctness of your solution, you need to define Super keys, Candidate Keys and
Non-prime attributes for each table. (20pts)
3. Put relationships on the tables. (20pts)
4. Define cardinality for each relationship. (20pts)
5. Define Primary and Foreign keys. (20pts)

Hint: Use any drawing tool (except Paint) to implement your ER-Diagram.

You might also like