Слайд 2

Databases. Main definitions.

This are resources to which the users having the corresponding

Databases. Main definitions. This are resources to which the users having the
access rights have to have access.
The database is the coordinated (consistent) data set which is falling into to a specific objective (tasks) together with logical communications between data.
Logical communications (schemes) define how one data correspond to others according to the DB logical model. In it the main difference of a DB from the file of data in which data are organized on physical sign in the form of a serial set of records consists.
The database management system represents a set of tools, and is more often - the realized programs intended for storage of the database, change of its contents, ensuring its safety and interaction with the user.

Слайд 3

Databases. Trial functions.

Providing quick access to a DB.
Protection of a wholeness of

Databases. Trial functions. Providing quick access to a DB. Protection of a
a DB at hardware failures and program mistakes.
Differentiation of access rights and protection against unauthorized access to a DB.
Support of collaboration of several users from the common DB.
Data management in external memory;
Control of buffers of random access memory;
Management of transactions (operating sequences over a DB);
Journalizing and restoration of a DB after failures;
Maintaining of the DB languages.

Слайд 4

Logical organization of databases.

The logical organization of databases is the logical model

Logical organization of databases. The logical organization of databases is the logical
of subject domain reflecting three types of information about objects of subject domain:
data on objects of subject domain;
their properties;
their relations.
Objects on the scheme are defined by types of records, properties of objects - fields of records, the relations - define communications between types of records and fields.
Types of the DB logical models:
hierarchical;
network;
relational.

Слайд 5

Data model definition

Data structure
Operations
Integrity constraints

schema – data description
instance – data

Data model definition Data structure Operations Integrity constraints schema – data description
value
data structure = schema + instance
data algebra = data structure + operations
data model = data algebra + integrity constraints

Слайд 6

Field and Segment

Graphic notation:

TEACHER (Name, Post, Address)

Data field – elementary named data.

Field and Segment Graphic notation: TEACHER (Name, Post, Address) Data field –
Its instance is a data value.
Segment – is a named set of field names:

TEACHER

Name

Post

Address

Segment instance – ordered set of fields instances:

TEACHER

Johnson

professor

Kiev

Слайд 7

Hierarchy Data Schema

TEACHER

Name

Post

Address

DEPARTMENT

Name

Head

Building

FACULTY

Name

Dean

Fund

FACULTY

DEPARTMENT

TEACHER

Hierarchy Data Schema TEACHER Name Post Address DEPARTMENT Name Head Building FACULTY

Слайд 8

Hierarchy Data Schema

Hierarchy Data Schema

Слайд 9

Hierarchy Schema Instance

FACULTY

DEPARTMENT

STUDENT

Informatics

CAD

Alex

Operating systems

Bobby

Diana

Hierarchy Schema Instance FACULTY DEPARTMENT STUDENT Informatics CAD Alex Operating systems Bobby
Helen

Mary

John

Schema Schema instance

Слайд 10

Fields and record types

Graphic notation:

TEACHER (Name, Post, Address)

Data field (item) – elementary named

Fields and record types Graphic notation: TEACHER (Name, Post, Address) Data field
data. Its instance (occurrence) is a data value.
Record type – is a uniquely named collection of field names:

TEACHER

Name

Post

Address

Record type instance – ordered collection of fields instances:

TEACHER

Johnson

professor

Kiev

Слайд 11

Keys

Two or more different records within a network data base may have

Keys Two or more different records within a network data base may
duplicate values of all data items.

The Data Base Key (DBK) is a unique internal identifier of any record. DBK is automatically assigned to any record when it is stored in DB and do not changed when a record is updated.

CALC key is an internal identifier of any record, that assigned to a record on the base of values of a specified record fields.

Слайд 12

Example of the set type and instance

DEPARTMENT

TEACHER

SUBJECT

logics

DBMS

С language

Peter

John

Ann

SE

Department Structure

Set

Example of the set type and instance DEPARTMENT TEACHER SUBJECT logics DBMS
owner

Set members

Set type Set instance

Set name

Слайд 13

Multilevel Hierarchy

DEPARTMENT

TEACHER

SUBJECT

Department Structure

BOOK

ARTICLE

Scientific Works

Owner of the

Multilevel Hierarchy DEPARTMENT TEACHER SUBJECT Department Structure BOOK ARTICLE Scientific Works Owner
set «Department Structure»

Members of the set «Department Structure»

Owner of the set «Scientific Works»

Members of the set «Scientific Works»

Слайд 14

Possible categories of network schemas

Possible categories of network schemas

Слайд 15

Nonformal introduction to relations

Form of representation:
As a table
By using a condition

Relation is

Nonformal introduction to relations Form of representation: As a table By using
an association between any number of entities.

Like subject Is more Supply Who What First Second Who Whom What Q-ty
John DBMS 5 3 П1 К7 table 200
Peter С 17 5 П3 К14 door 150
Ann XML 2 1 П18 К9 window 1000

Имя файла: Lecture_5.pptx
Количество просмотров: 30
Количество скачиваний: 0