Lab 01 and 02
Lab 01 and 02
Visio
Open Visio 2013/2016 Software and Database choose Chen’s Database Notation
Derived attribute: gets its value from other attributes and maybe some calculations.
R.C set derived attribute
Multivalued attribute: skills, more than one value. We don’t know the number of skills so it
should be mentioned as a multivalued attribute then it will be a table in RD. Any number of
skills will be accepted.
R.C set multivalued attribute
1
Lab 1 & 2
Associative entity
R.C set composite (Entity + Relationship)
Weak entity
R.C set weak entity
Identifying relationship
Fill color
R.C format shapes
Cardinalities in ER diagrams:
R.C. Format Shape Begin Arrow type
End Arrow type
After you understand the scenario and business rules draw the following ER
diagram example:
Draw the Entity and their relationships for the following simple scenarios:
1. Student and course
2. Student and department
3. Lecturer and course
4. Person and passport
5. Employee and department
6. Customer and product
7. Patient and doctor
8. Factory, car and customer
3
Lab 1 & 2
Enhanced ER:
Open Visio 2013/2016 Software and Database choose Chen’s Database Notation
Relational Model:
Open Visio 2013/2016 Software and Database choose Crows’s foot Database Notation