Assignment # 1: 2022W - CSD 2206 - 4 Database Design & SQL
Assignment # 1: 2022W - CSD 2206 - 4 Database Design & SQL
Assignment # 1
(Total Marks: 100, Weight: 5%)
Objectives:
To understand and be able design entity relationship diagrams
P02-01a
At Jenny's Salon & Spa, we have several hairstylists that are salaried employees. In addition
to their salary, we store their first name, last name, social security number, mobile number,
and email address. The salon has clients, which they record first name, last name, mobile
number, email address, and preferred day. Some clients do not have a preferred day.
P02-02a
Lakeside Assembly Inc. sells products assembled from parts purchased from various
vendors.
For each vendor, vendor id, company name, and contact person are stored. Some vendors
do not assign a contact person. For parts, part id, part description, and part cost are stored. For
products, product id, product name, and selling price are stored.
Name the first tab P02-02a
Identify and draw the entities
Add the attributes associated with each entity and identify them as mandatory or
optional
Identify candidate keys for each entity
- Specify the UID/PK for each entity
- Specify all other candidate keys as unique keys (UKs)
P02-02b
Each part is purchased from one specific vendor. Of course, each vendor may supply
several parts. Usually, but not always, a vendor relationship is established before any parts are
purchased. Each product is assembled from one or more parts. Each part is unique and is used
in the assembly of one specific product. Modify the ERD and include the ERD language.
Name the second tab P02-02b
Enhance the ER diagram
Include relationships and ER language