Informatics 9. Билингвальный учебник - [7]

Шрифт
Интервал

- добавлять новые записи и поля;

- поиск по критериям;

- удалять записи.


Database components

Database system consists of 3 parts:

1. Table: The best way to keep all recordings in a database is to use tables. A table has rows and columns. Types of data will be stored in columns (fields) whereas recordings about each item will be stored in rows (records).

2. Query: Used for making operations within a database. Query is a some kind of functions that can be applied to data in a database. There are examples of queries like: find, sort, filter, different types of calculations and so on.

3. Report: By using a DBMS it is possible to show all your requested information in a specific report document. So after you filter the required information and make calculations using queries you can show the results in one report.


Literacy

1. How did people store information before database?

2. How they made such operations like searching, storing and managing information?

3. Where database used in daily life?


Terminology

database – деректер қоры – база данных

field – алаң – поле

record – жазба – запись

column – баған – столбец

row – жол - строка

access – қол жеткізу – доступ

protection – қорғау – защита

table – кесте – таблица

query – сұраныс – запрос

report – баяндама – отчет


2.2 DESIGNINGADATABASE

You will:

Design a database;

Identify data types.


What is the best way to keep information about books at a library?

Designadatabase

Таблицы являются основным пунктом в базе данных, поэтому вы должны потратить некоторое время на планирование и организацию своих таблиц.

Прежде чем приступать к разработке таблицы, вы должны решить:

- Какие аспекты и события нужно занести и обработать? Ответ на этот вопрос определяет содержимое таблицы и имя таблицы.

- Какие поля вам нужны для организации подобных значений и данных? Ответ на этот вопрос определяет имя полей.

- Какой тип данных вы будете хранить в этих полях? Ответ на этот вопрос определяет типы полей.


Databasedatatypes

Текст - Представляет собой группу символов, таких как имена, фамилии и адреса.

Числа - Примерами типа чисел являются возраст, количество и вес.

Дата / время - Используется для хранения даты или времени. Примерами этого типа данных являются дата выпуска и дата рождения.

Валюта - Используется для представления валютной (денежной) стоимости. Например, цена продажи и сумма кредита.

Гиперссылки - Вы можете предоставить ссылку из вашего документа в файл на своем компьютере или на веб-страницу в Интернете.


Keep in mind

A database system is a computer program for managing electronic databases. A very simple example of a database system would be an electronic address book.


Activity 1

Давайте создадим базу данных для библиотеки, которая будет хранить информацию о каждой книге.

1. Прежде всего возьмите лист бумаги и попробуйте спланировать поля для своей новой таблицы.

2. Запишите следующие поля на бумаге: ID, название книги, автор, жанр, дата публикации, количество, популярность.

3. Теперь попробуйте определить, какие типы полей необходимы для полей, которые вы написали.


Activity 2

Choose one of the options below and try to make a database design. Discuss database designs with your classmates. Think about what fields can be used.

1. Student registration form

2. Computer Lab inventory

3. Music and movie store

4. Social network users’ database


Make at least 10 fields with different data types and apply them into your database.


Uses for database systems include:

- They store data

- They store special information used to manage the data. This information is called metadata and it is not shown to all the people looking at the data.

- They can solve cases where many users want to access (and possibly change) the same entries of data.

- They manage access rights (who is allowed to see the data, who can change it)

- When there are many users asking questions to the database, the questions must be answered faster. So, the last person to ask a question can get an answer in a reasonable time.

- Certain attributes are more important than others, they can be used to find other data. This is called indexing. An index contains all the important data and can be used to find the other data.

- They ensure that the data always has context (makes sense). There are a lot of different rules that can be added to tell the database system if the data makes sense. One of the rules might say November has 30 days. This means if someone wants to enter November 31 as a date, this change will be rejected.


Fact

A database administrator could...

Design a digital database of medical records that can be instantly transferred between clinics, unlike paper patient records.

Protect bank accounts from hackers by adding security features to a bank’s financial database.

Make an inventory database for a chain of candy stores to help them keep the most popular candies in stock.

Create a database of DNA from people with multiple sclerosis to help researchers pinpoint the genes involved in the disease.


Literacy

1. How do we build a new database?

2. Where do we use a table in daily life?