01a Database Lecture Databases
01a Database Lecture Databases
2
Chapter 1.1: Private example
• Private adress book
Aim is to store information from different
individual types, e.g. friends, colleagues,
business partners, etc.
3
Chapter 1.1: Private example
First request to a database:
(1) Latin:
persistere – remain, stand still
4
Chapter 1.1: Private example
Alphabetic
by name
by surname
6
Chapter 1.1: Private example
Second request to a database:
7
Chapter 1.1: Private example
• Result oriented communication between
user and database!
(1) Read the first entry of the databasee
(2) Check if wanted set is available
If not, read the next one
9
Chapter 1.1: Private example
• Administration functions
Yesterday Today
Buy address book and Create a dataset in our
make entries database (INSERT)
Read entries Read datasets (SELECT)
10
Chapter 1.1: Private example
Use Case example “update ZIP code”:
• ZIP code switch in 1993 (from 4 to 5 digits)
… old: 6057
… new: 63128
private address book
Redundancies
Müller Moritz Frankfurt
Schubert Matthias Frankfurt a.M.
12
Chapter 1.1: Private example
• Definition redundancy:
13
Chapter 1.1: Private example
Use Case example “data
inconsistence”:
Surname Name Mobile
Madmar Mohamed 015/085
Mohamed Madmar 015/085
inconsistence
Surname Name Mobile
Data
Madmar Mohamed 0151 / 007
Mohamed Madmar 0151 / 0815
14
Chapter 1.1: Private example
• Definition Data inconsistency :
15
Chapter 1.1: Private example
• Request to a database:
The database should be designed in that way,
so you can store the data without
redundancies.
Database with
Customer,
Article and
Campaign information
campaign
20
End Chapter 1