0% found this document useful (0 votes)
8 views4 pages

Lab 01 and 02

Uploaded by

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

Lab 01 and 02

Uploaded by

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

Lab 1 & 2

Visio
Open Visio 2013/2016  Software and Database  choose Chen’s Database Notation

Creating Entities and different Attributes:


PK
R.C  set primary key

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

Composite attribute: simple attribute; address, more than one attribute

Width (Change it for derived attribute to be appeared clearly)


R.C  format shapes

1
Lab 1 & 2

Color line (Change it for derived attribute to be appeared clearly)


R.C  format shapes

Associative entity
R.C  set composite (Entity + Relationship)

Weak entity
R.C  set weak entity

Identifying relationship

R.C  set identifying relationship

Fill color
R.C  format shapes

Cardinalities in ER diagrams:
R.C.  Format Shape  Begin Arrow type
 End Arrow type

Note: Relational diagram shows


cardinalities just by R.C.
2
Lab 1 & 2

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

Adding Circle: Adding Arc:


Home Tools  Ellipse Home Tools  Arc

Relational Model:

Open Visio 2013/2016  Software and Database  choose Crows’s foot Database Notation

Primary Key and Foreign Key:


R.C.  Format Shape  Begin Arrow type
 End Arrow type

Adding Underline for PK: Adding Underline for FK:


Home Tools  Line Drag and drop primary key separator
Then increase its width

Note: Relational diagram shows cardinalities just by R.C (Not required).

You might also like