Lecture 2 Flashcards
data model is
a set of concepts that describes the structure of the database, the operations for manipulating these structures and certain constraints that the database should obey
T or F
constraints specify some restrictions on valid data these constraints must be enforced at all time.
True
Data model operations are
Operations are used for specifying database retrievals and updates by referring to the constraints of the data model
operations may include
- ……. operations
- ……operations
basic model
user defined
Categories of a data models
- conceptual (high level semantic)
(provides concepts that are close the way many users can perceive data) - physical (low-level internal) data model
(provides concepts that describes details how data is stored in the computer implementations) - Implementations (representational) data model
(provides concepts that are intermediate between conceptual, physical)
Now used data model is
relational model
what is a database schema?
description of database, includes descriptions of the database structure and datatypes and the constraints on the database
schema diagram is
an illustrative display that illustrates el description
schema construct is
a component of the schema
database state (instance)
actual data stored in database at a particular moment in time (occurrence, snapshot)
does database state change with each transaction?
yes, that’s why it requires a time stamp
what is an empty database state?
the beginning database after creation immediately with no data
what is an initial database state?
refers to loading with the initial data into the system
what is a valid state?
satisfies that structure and constraints (DBMS Is responsible for this)
Schema VS State (changes perspective)
schema doesnt change frequently
state changes every transaction (every time the database is updated)
what is the goal of three schema architecture?
to separate the user application from the physical database.
DBMS three level
internal, conceptual, external schema
- internal : describe physical storage structure and access paths
- conceptual : describes the structure and constraints for the whole database for a community of users
- external: describes the various user views (the part that the user group is interested in )
internal schema describes the structure and constraints ?
false , it describes physical storage structures and access paths
conceptual schema describes the structure and constraints for the whole database?
true
which schema level describes the various user views ?
external schema level
which schema level describes the physical storage structure and access paths ?
internal schema level
schema changes with the occurrence of each transaction ?
false, schema doesn’t change frequently
name the categories or types of data models
- conceptual
- physical
- implementations
data independence types
- logical
- physical data independence