Professional Documents
Culture Documents
01 Introduction DBMS History of DB 15 04 2020
01 Introduction DBMS History of DB 15 04 2020
AlBaha University
2019-2020
1
1. Introduction to Database and DBMS
1. INTRODUCTION
Response: in a database
2
1. Introduction to Database and DBMS
Introduction
1.1 The data
3
Introduction
1. Introduction to Database and DBMS
1.1 The data
4
1. Introduction to Database and DBMS
Introduction
1.1 The data
How to store them in a computer?
5
Introduction
1. Introduction to Database and DBMS
1.1 The data
données
Client Data
du client
Order
data
Details data
6
Introduction
1. Introduction to Database and DBMS
1.1 The data
Referring these data in tables:
Order data Client data
Details data
NPRO LABEL PRICE QORDER SUB-TOTAL
observations:
1. TOTALORDER and SUB-TOTAL are computed: no need to keep
2. it is impossible to reconstruct the original purchase order: who is the
Client of the order, what is the order of a detail?
7
Introduction
1. Introduction to Database and DBMS
1.1 The data
Details data
Observation
if more details refer to the same product, its features are repeated
many times: isolated product data in a specific table
8
Introduction
1. Introduction to Database and DBMS
1.1 The data
9
Introduction
1. Introduction to Database and DBMS
1.1 The data
CLIENT
NCLI
Add
NAME
other data: our first database NPRO LABEL
PRODUCT
QSTOC
ADRESS LOCALITY (CAT) ACCOUNT PRICE
DETAIL
NORD NPRO QORD
ORDER
NORD NCLI DATORD
10
Introduction
I.
1. The Databases
Introduction toConcepts
Database and DBMS
1.2 Use a database
What can we do with this data?
The question: what is the number, name and address of Toulouse clients?
select NCLI, NAME, ADRESS
s y
from CLIENT ea
where LOCALITY = 'Toulouse';
Produce invoices
12
Introduction
1. Introduction to Database and DBMS
1.2 Use a database
What can we do with this data?
A final example:
calculate the distribution of turnover by location and by product
13
Introduction
1. Introduction to Database and DBMS
1.3 First conclusions
14
Introduction
1. Introduction to Database and DBMS
1.3 First conclusions
• It avoids storing data that can be calculated from other data recorded.
• Is not kept in a table of data relating to entities of different nature. It would
cause redundancies.
• The SQL language is used to write a simple and concise way of extraction and
queries of any complexity calculation data.
• You do not build a database to meet the immediate needs of a particular
application. A database is designed to reflect as closely as possible the
information related to human activity, socio-economic, cultural or technical. It is
independent of what will be done of such data.
• Building a database requires rigorous and careful analysis. It is possible at any
time to add new tables and new columns to track the evolution of user needs.
15
Introduction
1. Introduction to Database and DBMS
1.4 Database management systems DBMS
Data management: changing the DBMS ensures data consistency; it checks the
constraints (uniqueness, reference between tables, etc.).
Data access: the DBMS allows access to data from both the casual user and the
data processing programs.
16
Introduction
1. Introduction to Database and DBMS
1.4 Database Management Systems DBMS
Access controls: the DBMS ensures that only authorized users can access data
and change.
17
Introduction
1. Introduction to Database and DBMS
Labs: DBMS Oracle 11g Express Edition
Documentation
http://docs.oracle.com/cd/B25329_01/doc/admin.102/b25610/toc.htm
Download
http://www.oracle.com/technetwork/database/database10g/
overview/index-095623.html
18
1. Introduction to Database and DBMS
History of Database Systems
Before-1950s
• Data was stored as paper records.
• Lot of man power involved.
• Lot of time was wasted.
e.g. when searching
• Therefore inefficient.
19
1. Introduction to Database and DBMS
History of Database Systems
Revolution began
20
1. Introduction to Database and DBMS
History of Database Systems
Drawbacks
o Separation and isolation of data
• Each program maintains its own set of data.
• Users of one program may be unaware of
potentially useful data held by other programs.
21
1. Introduction to Database and DBMS
History of Database Systems
o Duplication of data
• Same data is held by different locations.
• Wasted space and potentially different values and/or
different formats for the same item.
o Data dependence
• File structure is defined in the program code.
22
1. Introduction to Database and DBMS
History of Database Systems
23
1. Introduction to Database and DBMS
Database Approach
Arose because:
24
1. Introduction to Database and DBMS
Database Management Systems (DBMS)
25
1. Introduction to Database and DBMS
Hierarchical Model
26
1. Introduction to Database and DBMS
Hierarchical Model (Contd.)
Hypothetical Hierarchical Database Model
27
1. Introduction to Database and DBMS
Network Model
o Most suitable for large databases with well defined queries and
welldefined applications.
28
1. Introduction to Database and DBMS
Network Model (Contd.)
29
1. Introduction to Database and DBMS
Relational Model (1970’s)
30
1. Introduction to Database and DBMS
Relational Model (Contd.)
31
1. Introduction to Database and DBMS
Relational Model (Contd.)
o Today, DB2, Oracle, and SQL Server are the most prominent
commercial DBMS products based on the relational model
32
1. Introduction to Database and DBMS
Object Oriented Data Model (1990’s)
33
1. Introduction to Database and DBMS
Object-relational models
34
1. Introduction to Database and DBMS
Object-relational models
35
1. Introduction to Database and DBMS
Modern Database Management Systems
o Examples:
• Oracle (Oracle Corporation)
• Ingres (Computer Associates)
• SQL Server (Microsoft Corporation)
• Access (Microsoft Corporation)
• IMS, DB2 (IBM)
• And many more…
36
1.
I. The
Introduction
Databasesto Concepts
Database and DBMS