slide 1
slide 2
![](https://i0.wp.com/bigslide.ru/images/2/1813/389/img1.jpg)
slide 3
![](https://i2.wp.com/bigslide.ru/images/2/1813/389/img2.jpg)
slide 4
![](https://i2.wp.com/bigslide.ru/images/2/1813/389/img3.jpg)
slide 5
![](https://i1.wp.com/bigslide.ru/images/2/1813/389/img4.jpg)
slide 6
![](https://i2.wp.com/bigslide.ru/images/2/1813/389/img5.jpg)
Slide 7
![](https://i2.wp.com/bigslide.ru/images/2/1813/389/img6.jpg)
Slide 8
![](https://i1.wp.com/bigslide.ru/images/2/1813/389/img7.jpg)
Database (DB) - Database (DB) is a collection, in a certain way
organized information into some
topic.
For example:
Library book fund database;
Database of personnel of the institution;
Database of legislative acts in the region
criminal law;
Database of modern pop songs.
DB classification.
Databases are classified according to different criteria:by the nature of the stored database information
divided into factual and
documentaries;
according to the method of storing database data, there are
centralized and distributed;
by the structure of the database organization
classified into relational
network and hierarchical.
In factual databases
contained brief information aboutdescribed objects, presented with
strictly defined format.
Examples:
1. In the library database about each book
the following information is stored: year
edition, author, title, etc.
2. In the database of the personnel department, personal information is stored
employee details: full name, year of birth and
etc.
Documentary DB
contains extensive information aboutdifferent types: text, graphic,
sound, multimedia.
Examples:
1. in the database of laws - the texts of the laws themselves,
2. in the pop song database - texts and notes
songs, biography of authors, information about
poets, composers and performers,
sound and video clips.
Information system
is a combination of the database and the entire complexhardware and software for its
storage, modification and retrieval
information to interact with
user.
Examples:
1. Ticketing systems for
passenger trains and aircraft.
2. WWW is a global information
system.
Database (DB)
is a structured collectioninterrelated data within
some subject area
designed for long
storage in external memory
computer and permanent
applications. Can be used for database storage
to one computer, such a database
called centralized.
If different parts of the same database
stored on multiple computers
interconnected by a network,
such a database is called
distributed database.
A hierarchical database is called
in which information is organizedas follows: one element
records are considered the main, the rest
subordinates.
Examples: file system Family tree
The network is called the database,
in which to vertical bondshorizontal links are added.
Relational databases
- databases with tabular formorganization of information.
A relational database consists of one or
several interconnected
two-dimensional tables.
Examples:
In relational (table) databases, a row is called a record, and a column is called a field.
Fields are different characteristics(sometimes called attributes) of an object.
Field values in one line
belong to the same object.
Different fields have different names.
Example 1. Organization of information in a single-table database "Repertoire of cinemas for the week".
Cinemamovie
Russia
Adventure 11.00
Pinocchio
Titanic
13.00
3.00
Russia
Russia
Titanic
Star
landing
17.00
21.00
20.00
15.00
World
Wait for it!
11.00
3.00
World
Titanic
13.00
15.00
World
Thief
17.00
10.00
Russia
time
price
15.00
Primary (master) key of the database
is a field or group of fields, withthrough which it is possible to clearly
identify the entry. Meaning
primary key should not
repeat across records. IN
the example above in
as the primary key of the database
take a group of fields
cinema + time.
Field type
defines a set of values,which can be accepted by this
field in different records.
In relational databases
four main types are used
fields: numeric, character,
date, boolean The numeric type has fields whose values
can only be numbers. Numbers can be
whole and real.
Character type have fields in which there will be
store character sequences
(words, texts, codes, etc.).
The "date" type has fields containing
calendar dates in different form.
The boolean type corresponds to the field that
can only take two values:
"yes" - "no" or "true" - "false".
Example 2. Describe the structure of the database "Repertoire of cinemas for the week".
To describe the structure means to specify everythingtable fields and their characteristics.
field name
type
width
cinema
symbolic
15
movie
symbolic
25
time
numerical
5
2
price
numerical
5
2
quantity
decimal
signs
Example 3. Given a fragment of a relational database: Specify the main key; describe the characteristics of the fields.
Number Datedeparture flight
2156
Type
Price
plane ticket
23.10.08 TU-154
4564.50
Availability
tickets
Yes
Master key: flight number + date of departure. Field descriptions:
field nametype
width
Flight number
numerical
4
departure date
date
aircraft type
symbolic
10
Ticket price
numerical
5
Availability
tickets
logical
Qty
decimal
signs
2
Example 4. Convert to tabular form the hierarchical structure shown in fig.
Example 4. Convert to tabular form hierarchicalthe structure shown in Fig.
department
faculty
university
general physics
Physical
PSU
theoretical physics
Physical
PSU
organic chemistry
Chemical
PSU
inorganic chemistry
Chemical
PSU
botany
Biological
PSU
zoology
biological
PSU
Task #1
Transformbelow
information to
table view,
defining the table name and
the name of each field:
Olya, Petya, 13, singing, 14,
basketball, Vasya, Katya,
13, hockey, basketball,
football, 15.11, Kolya, 11,
dancing, Seryozha.
Table name: Employment in
mugs
Name
age circle
Olya
13
Singing
Peter
14
Basketball
Vasya
13
Hockey
Kate
15
Basketball
Kolya
11
Football
Series 11
dancing
Do it yourself:
1.The database table "Patient" contains
fields: last name, first name, patronymic, date
birth, lot number, address,
presence of chronic diseases, date
last visit to the doctor.
Determine the type and width of each
Informatics lesson in grade 8 (I.G. Semakin)
Place of work, position: MOU "Secondary School No. 27", Syktyvkar, computer science teacher Vasily Yuryevich Petrov.
Region: Komi Republic
Level of education: basic general education
Class(es): Grade 8
Subject(s): Informatics
The purpose of the lesson: To get acquainted with the concept of a database, their types, organization.
Lesson type: Lesson learning new material.
Students per class: 10-20
Equipment used: computer, projector, slides.
Lesson outline.
Topic: The concept of an information system, database, DBMS.
The purpose of the lesson: to get acquainted with the types of databases and the organization of data in them.
Tasks:
1. Educational
Learn to distinguish between database types;
Give the technique of reading tables as relational databases.
2. Educational
Develop interest in structuring information;
To develop the analytical thinking of children, their creative abilities, the ability to work with various kinds of information.
3. Educational
Cultivate diligence, perseverance, patience.
4. Learner-centered
Creating situations of communication in the classroom, allowing each student to show initiative, independence.
Equipment: computer, projector.
Software part: presentation Microsoft Office power point.
Plan:
Organizing time.
Analysis of the studied material.
Message about the topic and purpose of the lesson.
Conversation.
Outcome.
During the classes
Organizing time.
Prepared notebooks, pens, drew attention to the board.
Analysis of the studied material.
Before we proceed to the topic of the lesson, let's remember what we studied in the previous lesson. Answer: information models: tabular, graphic, etc. You and I analyzed them on our own, without using computer technology. Modern means allow you to process data on a computer in large volumes.
Message about the topic and purpose of the lesson.
Let's talk about databases. (Slide #1)
Main conversation
Let's talk about structuring information, its collection and storage (Slide No. 2).
The processing of information using computer technology will be called information system. (Slide number 3).
We give the concept of a DATABASE, taking into account the available information (Slide No. 4).
Let's classify databases by types. We include students in the work through direct communication (Slide No. 5). Discussion.
We study in detail each type of database (Slides No. 6,7,8).
We get acquainted with relational databases, remember tabular information models (slide No. 9).
We turn to the key of relational databases. We are talking about the uniqueness of each entry (slide number 10).
We recall the types of information in the form of presentation and talk about what data we can store in databases (Slide No. 11).
7. The results of the lesson. (slide 19.20)
Our lesson is coming to an end. You did such a good job today! What do you remember? What have you learned?
List of sources used
Informatics: textbook for grade 8 / I.G. Semakin, L.A.
- Introduction to databases
PPTX / 2.43 MbZalogova, s.v. Rusakova, L.V. Shestakova. - 2nd ed., corrected. - M. : BINOM. Knowledge Laboratory, 2014. - 176 p. : ill.
The concept of DBMS -
Municipal Autonomous General Educational Institution
"Miass Secondary School No. 16"
Presentation
in computer science for grade 9
on the topic of:
Informatics teacher, 1st category
Shavaleeva Svetlana Alekseevna
Miass
![](https://i0.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_1.jpg)
DATABASE.
![](https://i2.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_2.jpg)
INFORMATION SYSTEM- this is a combination of a database and the entire complex of hardware and software for its storage, modification and information retrieval for user interaction
DATABASE MANAGEMENT SYSTEM (DBMS) Software designed to work with databases
DATABASE (DB)
![](https://i0.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_3.jpg)
DATABASES AND INFORMATION SYSTEMS
DATABASE (DB)
An organized collection of data intended for long-term storage in the external memory of a computer and permanent use
FACTOGRAPHIC
Brief information about objects in a well-defined format
DOCUMENTARY
DISTRIBUTED DB
Documents in various formats
Storing different parts of the same database on multiple computers connected by a network.
- text information
- graphic objects
- sound information
- multimedia objects
- . . . . . . . . . . . . . . . . . .
- library directory
- personnel database
- reference file
- . . . . . . . . . . . . . . . .
![](https://i2.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_4.jpg)
![](https://i2.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_5.jpg)
Hierarchical model
In a hierarchical model, the structure of information is in the form of a tree. At the topmost (first) level, there is only one vertex, which is called the root. This vertex has connections with the vertices of the second level, the vertices of the second level have connections only with the vertices of the third level, and so on.
![](https://i2.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_6.jpg)
- In the network model, the main structure representation of information is in the form of a network, in which each vertex can have a connection with any other.
![](https://i2.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_7.jpg)
- In relational model information is presented in the form of a table. The rows of the table are records, and the columns are the same fields.
![](https://i0.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_8.jpg)
DATABASE MANAGEMENT SYSTEMS
- DBMS - application program, designed to work with the database.
DBMS - software, providing access to information stored in the database, its maintenance and processing.
- DBMS examples:
- KBASE, FOXPRO, VISTA, RBDMSX, ACCESS.
- KBASE,
- foxpro,
- VISTA,
- RBDMSX,
- ACCESS.
![](https://i0.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_9.jpg)
DATA TYPES
1) Text - the value of a text data is represented by a set of alphanumeric characters. The length of text data does not exceed 255 characters. Default, Microsoft Access sets the length to 50 characters. Specifying the length of a text field means that if you try to type more than long text extra characters will be ignored. If the text field contains numeric data, then this data is treated as text, and in mathematical operations cannot participate.
Text data type
Text data type
![](https://i0.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_10.jpg)
DATA TYPES
2) Counter - used for automatic numbering of records.
Data type "Counter"
![](https://i2.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_11.jpg)
DATA TYPES
3) Numerical - used for data (integer and fractional) involved in calculations.
Numeric data can be in any of the following formats:
Meaning
Description
Byte
Numbers from 0 to 255 (no fractional part)
Whole
Fraction
long integer
Numbers from -32768 to 32767 (no fractional part)
Absent
Size
1 byte
(Default value). Numbers from -2147483648 to 2147483647
(without fractional part)
Absent
floating point (4 bytes)
floating point (8 bytes)
Numbers from
-3.402823* to 3.402823*
Absent
2 bytes
4 bytes
Numbers from
-1.79769313486232* to 1.79769313486232*
Replication Code
4 bytes
Globally Unique Identifier (GUID)
8 bytes
Undefined
16 bytes
![](https://i0.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_12.jpg)
DATA TYPES
4) Date / Time- used to store time or date. It is possible to perform calculations with data (calculate the time interval between individual dates).
Date data type
![](https://i2.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_13.jpg)
DATA TYPES
5) Money - almost the same as the numeric type, but with a fixed number of decimal places and a currency sign.
![](https://i1.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_14.jpg)
DATA TYPES
6) Boolean fields - are used to store data that can take one of two possible values: True / Lie , Yes / No or On off. At the same time, the values True , Yes And On True, and the values Lie , No And Off equivalent to boolean False .
![](https://i0.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_15.jpg)
DATA TYPES
7) Fields OLE object - allows you to store images and other binary data in tables (for example, a spreadsheet Microsoft excel, document Microsoft Word , drawing, sound recording).
![](https://i2.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_16.jpg)
DATA TYPES
![](https://i0.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_17.jpg)
DATA TYPES
9) Field MEMO - arbitrary length text fields can contain the same data types as simple text fields. The difference between these fields is that the size of the field MEMO is not limited to 255 characters, but can contain up to 65535 characters.
![](https://i0.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_18.jpg)
DATA TYPES
10) Lookup master data type - is designed to create a field that offers a choice of values from a drop-down list containing a set of constant values or values from another table.
![](https://i1.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_19.jpg)
FIELD TYPES IN RELATIONAL DATABASES
Field type defines the set of values that this field can take in different records
numerical
symbolic
date Time
logical
These fields are for storing calendar dates and time of day data.
Date: "day / month / year"
Time watch : minutes »
Field value can only be a number
These fields store character sequences (words, texts, etc.)
Database "Electives"
Time Tracking Database
Last name, first name
Ivanov Petya
Petrov Vanya
time tracking
Sidorov Victor
Time spent
numerical
symbolic
logical
![](https://i1.wp.com/fsd.kopilkaurokov.ru/up/html/2017/04/10/k_58eb2e3242fc9/img_user_file_58eb2e32ac47f_20.jpg)
Access 2007 objects
tables- basic database objects.
Requests are special structures designed to process database data.
Forms- These are objects with the help of which new data is entered into the database or existing ones are viewed.
Reports- these are forms "on the contrary", With their help, data is issued to the printer in a convenient and visual form.
Macros - This macros.
Modules are programs written in Visual language basic.
Working Modes with Access 2007
In working with any database, there are two different modes: design - using the constructor
And operational(custom) - using the wizard.