Professional Documents
Culture Documents
Model a database
Understand (Relational Database Management System)
RDBMS concept
Appreciate MySQL as an open-source RDBMS
Database Design
Entity-Relationship Diagram (ERD) is a tool
for modeling data.
How to maintain an
inventory of contact
individuals and
institutions?
Steps to Create ERD
• Identify the entity
• Identify the entity's attributes
• Identify the relation between entities
Steps to Create ERD
• Identify the entity
PERSON INSTITUTION
Steps to Create ERD
• Identify the entity's attributes
1st Form
PERSON INSTITUTION
Name Name
Home address Address
Home phone no Phone number
Home fax no Fax number
Email address Type of
Age organization
Specialization Area of service
Office name Contact person
Position held e-mail address
Office address
Office phone
Office fax number
Steps to Create ERD
• Identify the entity's attributes
2nd Form
PERSON INSTITUTION
*PersonID *InstitutionID
Title Name
FirstName Address1
MiddleInitial Address2
LastName Country
HomeAddress1 PhoneNumber
HomeAddress2 FaxNumber
HomeCountry TypeOfOrganization
HomePhoneNo AreaOfService
HomeFaxNo ContactPerson
EmailAddress EmailAddress
Birthday
MajorSpecialization
OtherSpecialization
PositionHeld
Steps to Create ERD
• Identify the relation between entities
PERSON INSTITUTION
*PersonID *InstitutionID
Title Name
FirstName Address1
MiddleInitial Address2
LastName Country
HomeAddress1 belongs to PhoneNumber
HomeAddress2 FaxNumber
HomeCountry has TypeOfOrganization
HomePhoneNo AreaOfService
HomeFaxNo ContactPerson
EmailAddress EmailAddress
Birthday
MajorSpecialization
OtherSpecialization
InstitutionID
PositionHeld
Database: Contacts
Title Name
FirstName Address1
MiddleInitial Address2
LastName Country
HomeAddress1 PhoneNumber
HomeAddress2 FaxNumber
HomeCountry TypeOfOrganization
HomePhoneNo AreaOfService
HomeFaxNo ContactPerson
EmailAddress EmailAddress
Birthday
MajorSpecialization
OtherSpecialization
InstitutionID
PositionHeld
Additional DBMS Concepts
• Relational DBMS (RDBMS
– Commercial RDBMS (expensive)
• Oracle, Informix, SQL Server
– GNU General Public License software (free)
• MySQL, mSQL or PostGres.
MySQL
• A Relational Database Management System
(RDBMS) that is multi-user
Birthday DATE
MajorSpecialization VARCHAR(50)
OtherSpecialization VARCHAR(100)
InstitutionID INT
PositionHeld VARCHAR(100)