Lec 3
Lec 3
A DATABASE STATE:
The actual data in a database may change quite frequently; For
example, the database shown in Figure 1-11 changes every time
we add a new student or enter a new grade.
The data in the database at a particular moment in time is called a
database state or snapshot; It is also called the current set of
occurrences or instances in the database.
In a given database state, each schema construct has its own current
set of instances;
for example, the STUDENT construct will contain the set of
individual student entities (records) as its instances.
Every time we insert or delete a record or change the value of a data
item in a record, we change one state of the database into another
state.
The distinction between database schema and database state is very
important.
When we define a new database, we specify its database schema only to
the DBMS.
At this point, the corresponding database state is the empty state
with no data.
We get the initial state of the database when the database is first
populated or loaded with the initial data.
From then on, every time an update operation is applied to the database,
we get another database state.
At any point in time, the database has a current state.
The DBMS is partly responsible for ensuring that every state of the
database is a valid state—that is, a state that satisfies the structure
and constraints specified in the schema.
The DBMS stores the descriptions of the schema constructs and
constraints—also called the meta-data—in the DBMS catalog so
that DBMS software can refer to the schema whenever it needs to.
The schema is sometimes called the intension, and a database state
is called an extension of the schema.