Database Management System (DBMS)
A computer program for the purposes of managing databases. Is the basis for many applications (e.g., Electronic Health Records, Personal Health Records). A DBMS can host many databases A database can be implemented in many different DBMS systems.
Data Modeling
Before you implement a database, you need to design the database Data modeling is a systematic way to help you design the database. Map/simplify the real world to database schema/structure.
Why Data Modeling?
Power and flexibility of database depend on data model
Database is the realization of data model
Evaluation of commercial products Communicating with vendors and IT staff Building your own databases
Database Analysis
Determine User Requirements Develop Data Models A conceptual data model is one that represents data from the viewpoint of the user, independent of any technology that will be used to implement the model. A database has two parts
Schema Data
Stages of Data Modeling
Conceptual Model
E-R diagram Relational Model
Logical Model
Physical Model
Database management
Database Modeling
Conceptual
Logical
Physical
Real World
E-R Diagram
Relational Model
DBMS
The Importance of Data Modeling
Characteristics captured during data modeling
crucial in design of databases, programs, other items facts and rules essential in assuring data integrity
Data are the most complex aspects of the modern organization
Data are determined by the business rules. Need to avoid scope creeps
Data tend to be more stable than the business processes that use the data
Key Attributes
Certain attributes identify particular facts within an entity, these are known as KEY attributes.
The different types of KEY attribute are:
Primary Key
Composite Primary Key
Foreign Key
Key Definitions
Primary Key:
One attribute whose value can uniquely identify a complete record (one row of data) within an entity. A primary key that consists of two or more attribute within an entity.
Composite Primary Key
Foreign Key
A copy of a primary key that exists in another entity for the purpose of forming a relationship between the entities involved.
Summary on Data Modeling
Data model is the most critical aspect of system design and function Data models should reflect real world objects and their relationships to ensure durability A correct data model outlasts applications, including many not anticipated at system start-up