Chapter 2-DATABASE SYSTEM Architecture
Chapter 2-DATABASE SYSTEM Architecture
system
Chapter Two:
DATABASE SYSTEM
Architecture
Data models, Schemas, and Instances
Over view of data models
Architecture and Data Independence
Database Language and Interface
The Database System Environment
Classification of DBMS
Data Model, Schemas, a database state
Generally:
nouns translate into entities
Verbs translate into relationships among entities.
Relationships are bidirectional.
Two questions to identify the relationship type:
– How many instances of B are related to one
instance of A?
– How many instances of A are related to one
instance of B?
Categories of Data Models
Many data models have been proposed, which we can
categorize according to the types of concepts they use to
describe the database structure.
– High-level or conceptual data models provide concepts that
are close to the way many users perceive data, Representational
data models hide many details of data storage on disk but can be
implemented on a computer system directly.
– low-level or physical data models provide concepts that
describe the details of how data is stored on the computer
storage media, typically magnetic disks. Concepts provided by
low-level data models are generally meant for computer
specialists, not for end users,
Conceptual data models use concepts such as entities,
attributes, and relationships.
– An entity represents a real-world object or concept, such as
an employee or a project from the mini-world that is described
in the database.
– 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.
..cont…
Common characteristics:
– Conceptual simplicity with semantic completeness
– Represent the real world as closely as possible
– Real-world transformations must conform with
consistency and integrity characteristics
Each new data model capitalized on the
shortcomings of previous models
Some models better suited for some tasks
Schemas, Instances, and Database State