Lab7 CLC
Lab7 CLC
LAB 7 – ERD
A. Tutorial.
- Create ERD model for conceptual design
A conceptual data model (CDM) helps you analyze the conceptual structure of an
information system, to identify the principal entities to be represented, their attributes,
and the relationships between them. A CDM is more abstract than a logical (LDM) or
physical (PDM) data model.
A CDM allows you to:
- Represent the organization of data in a graphic format to create Entity Relationship
Diagrams (ERD).
- Verify the validity of data design.
- Generate a Logical Data Model (LDM), a Physical Data Model (PDM) or an Object-
Oriented Model (OOM), which specifies an object representation of the CDM using
the UML standard.
3. To rename and add more attribute to an entity, we make a double-click on that entity or
right-click and choose Properties.
FACULTY OF INFORMATION TECHNOLOGY
SCHOOL YEAR: 2020– 2021
SEMESTER II
DATABASE SYSTEMS
FACULTY OF INFORMATION TECHNOLOGY
SCHOOL YEAR: 2020– 2021
SEMESTER II
DATABASE SYSTEMS
FACULTY OF INFORMATION TECHNOLOGY
SCHOOL YEAR: 2020– 2021
SEMESTER II
DATABASE SYSTEMS
FACULTY OF INFORMATION TECHNOLOGY
SCHOOL YEAR: 2020– 2021
SEMESTER II
DATABASE SYSTEMS
In PowerDesigner, primary key is symbolled by ‘pi’ and foreign key is symbolled by ‘ai’.
The RESULT LIST shows errors if they occur and GENERATED FILES lets we know where
the SQL file is stored. We can choose edit to see SQL code.
FACULTY OF INFORMATION TECHNOLOGY
SCHOOL YEAR: 2020– 2021
SEMESTER II
DATABASE SYSTEMS
FACULTY OF INFORMATION TECHNOLOGY
SCHOOL YEAR: 2020– 2021
SEMESTER II
DATABASE SYSTEMS
FACULTY OF INFORMATION TECHNOLOGY
SCHOOL YEAR: 2020– 2021
SEMESTER II
DATABASE SYSTEMS
B. Exercise
Draw an ERD for the following situation.
1. A hospital has a large number of registered physicians. Attributes of PHYSICIAN
include Physician_ID (the identifier) and Specialty.
- Patients are admitted to the hospital by physicians. Attributes of PATIENT include
Patient_ID (the identifier) and Patient_Name. Any patient who is admitted must have
exactly one admitting physician.
- A physician may optionally admit any number of patients. Once admitted, a given
patient must be treated by at least one physician. A particular physician may treat any
number of patients, or may not treat any patients. Whenever a patient is treated by a
physician, the hospital wishes to record the details of Treatment_Detail include Date,
Time, and Results.