2.data Models and Database Architecture
2.data Models and Database Architecture
and Architecture
• Operations on the data model may include basic model operations (e.g.
generic insert, delete, update) and user-defined operations (e.g.
compute_student_gpa, update_inventory)
Categories of Data Models
Conceptual (high-level, semantic) data models
Provide concepts that are close to the way many users perceive data.
Also called entity-based or object-based data models.
Physical (low-level, internal) data models
Provide concepts that describe details of how data is stored in the computer.
Implementation (representational) data models
Provide concepts that fall between the above two
provide concepts that may be easily understood by end users but that are not
too far removed from the way data is organized in computer storage.
used by many commercial DBMS implementations (e.g. relational data
models used in many commercial systems).
Conceptual data model
Conceptual data models use entities, attributes, and relationships.
An entity represents a real-world object or concept, such as an
employee or a project.
An attribute represents some property of interest that further
describes an entity, such as the employee’s name or salary.
A relationship among two or more entities represents an association
among the entities, for example, a works-on relationship between an
employee and a project.
Entity-Relationship model—a popular high-level conceptual data
model.
Representational data model
Representational or implementation data models are the models
used most frequently in traditional commercial DBMSs.
These include the widely used relational data model, as well as so-
called legacy data models—the network and hierarchical models—
that have been widely used in the past.
Representational data models represent data by using record
structures and hence are sometimes called record-based data
models.
Schema
Database Schema
The description of a database.
Specified during database design and is not expected to change frequently.
Includes descriptions of the database structure, data types, and the
constraints on the database.
Schema Diagram
An illustrative display of (most aspects of) a database schema.
Schema Construct
A component of the schema or an object within the schema, e.g., STUDENT,
COURSE.
Example of a Database Schema
Database State
The actual data stored in a database at a particular moment in time.
This includes the collection of all the data in the database.
Also called database instance (or occurrence or snapshot).
The term instance is also applied to individual database components,
e.g. record instance, table instance, entity instance.
Refers to the content of a database at a moment in time.
Initial Database State:
Refers to the database state when it is initially loaded into the system.
Valid State:
A state that satisfies the structure and constraints of the database.
Example of a database state
Database Schema
vs. Database State
The database schema changes very infrequently.
The database state changes every time the database is
updated.
Schema is also called intension.
State is also called extension.
Questions
Q1: List the characteristics of DBMS