Lec 1
Lec 1
Lecture # 1
Chapter # 1
Databases and Database Users
Chapter
2/12/2024
1 1
Refrence
Chapter 1 2/12/2024 2
Professor Ramez Elmasri
https://en.wikipedia.org/wiki/Ramez_Elmasri
Chapter
2/12/2024
1 3
Course Objectives
Introduction to very basics
Guides through different design stages
Familiarize with tools
Emphasis on design stages of database
Chapter
2/12/2024
1 4
Lecture Objectives
Some common uses of database systems.
Characteristics of file-based systems.
Problems with file-based approach.
Meaning of the term database.
Meaning of the term Database Management System
(DBMS).
Chapter
2/12/2024
1 5
Lecture Objectives
Typical functions of a DBMS.
Major components of the DBMS environment.
Personnel involved in the DBMS environment.
History of the development of DBMSs.
Advantages and disadvantages of DBMSs.
Chapter
2/12/2024
1 6
Examples of Database Applications
Purchases from the supermarket
Purchases using your credit card
Booking a holiday at the travel agents
Using the local library
Taking out insurance
Renting a video
Using the Internet
Studying at university
Chapter
2/12/2024
1 7
Definitions
Data: stored representations of meaningful objects and
events or
Referred to facts concerning objects and events that
could be recorded and stored on computer media
Structured: numbers, text, dates
Chapter
2/12/2024
1 9
Chapter
2/12/2024
1 10
Figure 1-1a Data in Context
Chapter
2/12/2024
1 13
A bit of History
Computer initially used for computational/ engineering
purposes
Commercial applications introduced File Processing
System
Chapter
2/12/2024
1 14
File Processing System
A collection of application programs that perform
services for the end-users such as production of
reports
Each program defines and manages its own data
Chapter
2/12/2024
1 15
File Processing Systems
Library Examination Registration
Chapter
2/12/2024
1 Program and Data Interdependence 16
File Processing Systems
Chapter
2/12/2024
1 17
Files Based Processing
Chapter
2/12/2024
1 18
Disadvantages of File Processing
Program-Data Dependence
File structure is defined in the program code.
All programs maintain metadata for each file they use
Duplication of Data (Data Redundancy)
Different systems/programs have separate copies of the same data
Same data is held by different programs.
Wasted space and potentially different values and/or different formats for
the same item.
Limited Data Sharing
No centralized control of data
Programs are written in different languages, and so cannot easily access
each other’s files.
Chapter
2/12/2024
1 19
Disadvantages of File Processing
Lengthy Development Times
Programmers must design their own file formats
Excessive Program Maintenance
80% of of information systems budget
Vulnerable to Inconsistency
Change in one table need changes in corresponding tables as well
otherwise data will be inconsistent
Chapter 1 2/12/2024
20
Problems with Data Dependency
Each application programmer must maintain their
own data
Each application program needs to include code
for the metadata of each file
Each application program must have its own
processing routines for reading, inserting, updating
and deleting data
Lack of coordination and central control
Non-standard file formats
Chapter
2/12/2024
1 21
Problems with Data Redundancy
Waste of space to have duplicate data
Causes more maintenance headaches
The biggest problem:
When data changes in one file, could cause
Chapter 1 2/12/2024 22
SOLUTION:
The DATABASE Approach
Central repository of shared data
Data is managed by a controlling agent
Stored in a standardized, convenient form
This requires a
Database and Database Management System (DBMS)
Chapter
2/12/2024
1 23
Advantages of Database Approach
Library Examination Registration
Database
Management
System
Chapter 1 2/12/2024 25
Database Management System
DBMS manages data resources like an operating system manages hardware resources
Chapter 1 2/12/2024 26
Chapter 1 2/12/2024
27
Chapter 1 2/12/2024 28
Any Question?
Chapter 1 2/12/2024 29
See You next week
Chapter 1 2/12/2024 30