ch2
ch2
Instance or occurrences:
Database change over time as information is inserted
and deleted.
The collection of information stored in the database
at a particular moment is an instance of the
database.
ex: Each row in the database i.e. a set of related
data’s.
Schema or intension:
The description of a database is called the
schema or intension.
The overall design of the database is the database
schema.
Three layer architecture
Internal level: which describe the physical storage
structure of database it use Physical data model and
describe how data is stored in a computer, representing
information such as record structures, record orderings
and access path.
b) Conceptual Database: describe the structure of whole
database for users. This describes what data is stored in
the database and the relationships among data.
c) The external-view level: include a number of external
schema. Each view describe part of the database that
particular group of user have access to.
View
A database view is a searchable object in
a database that is defined by a query.
Though a view doesn't store data, some refer
to a views as “virtual tables,” you can query
a view like you can a table.
A view can combine data from two or more
table, using joins, and also just contain a
subset of information.
Data Model
Data model is a collection of conceptual tools for
describing data, data relationships, data semantics,
and consistency constraints.
Categorize of data Model:
Object base data Model
Record base Data Model
Physical data Model
Object-based Model
this Model use concept such as entities, attribute, and
relationship.
An Entity is distinct object (a person,place,thing.concept,
event) in organization to represent in database.
Some of object base model are
Entity-Relationship
Semantic
Physical Data Model
describes how data is stored in a computer,
representing information such as record
structures, record orderings and access path.
Relationship model
The E-R model based on the perception that
the real world consists of basic objects called
entities, and relationship among these
entities. Entities are described in the
database by a set of attributes.
A relationship is an association among
various entities.
The Relational model
uses collection of tables to represent both
data and the relationships among these data.
Each table has multiple columns and each
column has unique name. It is based on
mathematical relations.
Object-based Model
This model is an extension of E-R model.
Object-relational data model combines the
features of the object-oriented model and
relational model.
Database Languages
A database system provides a data definition
language and a data manipulation language.
Data Definition Language (DDL)