0% found this document useful (0 votes)
140 views

Assignment # 1: 2022W - CSD 2206 - 4 Database Design & SQL

Uploaded by

yam sun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
140 views

Assignment # 1: 2022W - CSD 2206 - 4 Database Design & SQL

Uploaded by

yam sun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

2022W_CSD 2206_4

Database Design &


SQL

Assignment # 1
(Total Marks: 100, Weight: 5%)

Objectives:
To understand and be able design entity relationship diagrams

Submission: Instruction will be provided by the instructor

Question # 1 : P02-01- Jenny's Salon & Spa


 Create a file called P02-01
 Design the data models below
 Export the file containing the data models as a PDF file and submit

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.

 Name the first tab P02-01a


 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-01b
Each hairstylist is assigned clients. When a hairstylist is hired, the hairstylist is not assigned
any clients during orientation. Each client is asked if they have a preferred hairstylist. If they
have no preference, they are assigned a hairstylist that becomes their hairstylist. Of course,
they can switch to another hairstylist at any time.
 Name the second tab P02-01b
 Include relationships and ER language

© 2021 LAMBTON COLLEGE IN TORONTO


2022W_CSD 2206_4
Database Design &
SQL

Question 2 : P02-02 - Lakeside Assembly Inc.


 Create a file called P02-02
 Design the ER diagrams described below
 Export the file containing both data models as a PDF file and submit

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

Excellent (100%) Proficient Needs Not Evident (0-20%)


80%-90% Improvement
(70%)
ER-Model  90-100% of the entities  80-89% of the entities  70-79% of the  0-69% of the entities
Entities were captured were captured entities were were captured.
 90-100% of the  80-89% of the identified captured.  0-69% of the
identified entities used entities used correct  70-79% of the identified entities
correct naming naming conventions. identified entities used correct naming

© 2021 LAMBTON COLLEGE IN TORONTO


2022W_CSD 2206_4
Database Design &
SQL

conventions.  There was no confusion used correct naming conventions.


 There was no confusion between attributes and conventions.  There was confusion
between attributes and entities  There was no between attributes
entities. confusion between and entities.
attributes and
entities.
ER-Model  90-100% of the entities  80-89% of the entities  70-79% of the  0-69% of the entities
Attributes modeled, contained the modeled contained the entities modeled modeled contained
appropriate attributes. appropriate attributes. contained the the appropriate
 90-100% of the  80-89% of the attributes appropriate attributes.
attributes listed used listed used the correct attributes.  0-69% of the
the correct naming naming conventions.  70-79% of the attributes listed used
conventions.  The Unique Identifier attributes listed used the correct naming
 The Unique Identifier where indicated was the correct naming conventions.
where indicated was clearly labeled. conventions.  The Unique Identifier
clearly labeled  The Unique where indicated was
Identifier where not clearly labeled
indicated was clearly
labeled.
ER-Model 90-100% of the 80-89% of the 70-79% of the 0-69% of relationships
Relationshi relationships have the relationships have the relationships have the have the appropriate
ps appropriate name, appropriate name, appropriate name, name, direction,
direction, optionality, and direction, optionality, and direction, optionality, optionality and/or
degree/cardinality. degree/cardinality and degree/cardinality.
degree/cardinality.

© 2021 LAMBTON COLLEGE IN TORONTO

You might also like