Lecture 2 - Intro Database
Lecture 2 - Intro Database
HIRA FAYYAZ
LECTURE 2
Introduction 2
• Database System
• What is Data ?
• What is Information?
• Difference between Data and Information
• Meta Data?
• File processing system
• Database
• Database Management System
• Difference between File and Database
Approach
• Types of Users
Introduction 3
• Database
• DATA ?
• Information?
Introduction (Data) 4
• Database
• DATA ?
• The term data is defined as “facts and figures”.
• Collection of raw facts and figures.
• Collected from different sources for different purposes.
• Data may consist of numbers, characters, symbols, pictures,
videos, audios or any other forms.
• Examples:
raw facts about students: name , class , age etc
• Building blocks of information
Introduction (Information) 5
• Database
Processin Informatio
• DATA Data
g n
• Information?
• Organized and processed form of data
• Meaningful for decision making.
• Example:
• Marks of a student in different subject is the data.
• Total marks is the information.
• Average mark is also information
Introduction (Data vs Information) 6
Data Information
Unprocessed raw facts Processed form of data
• Example:
• Every time you
take a photo
with today's
cameras a bunch
of metadata is
gathered and
saved with it:
• date and time,
• filename,
• camera settings,
• geolocation.
Introduction (Metadata) 9
• Example:
• Each book has a
number of standard
metadata on the covers
and inside. This
includes:
• a title,
• author name,
• publisher and copyright
details,
• description on a back,
• table of contents,
• index,
Introduction (Metadata) 10
• Example:
• Further examples can
be viewed at the
following link:
• https://dataedo.com/kb/
data-glossary/what-is-m
etadata
Brainstorming Activity-1 11
09/10/2024
Example of file system 19
Grade Class
App – 1
File – 1 (operations + data descriptions)
App – 2
File – 2 (operations + data descriptions)
App – n
File – n (operations + data descriptions)
1. Redundancy of Data
2. Inconsistent Data
3. Poor Enforcement of Standards
4. Data Dependence
5. Limited Data Sharing
6. Inflexible
7. Lack of provision for security
8. Limited recovery from failure
9. Atomicity 09/10/2024
10. Maintaince
Drawbacks of File System 25
1. Redundancy of Data
• Redundancy means duplication of data.
• Higher storage
Database
Management
System
University
Students
Database 10/09/2024
Database System 32
D App – 1 (Operations)
B
App – 2 (Operations)
M
Database
(Data + Data Descriptions)
S
App – n (Operations)
DBMS manages data resources like an operating system manages hardware resources
10/09/2024
33
3. Enforcement of Standards
• This is possible as database is designed to meet the
organization wide requirements.
• The standards can be name of data items and their
format, data codes, documentation standards, operation
standards, security policies etc.
4. Reduced Program Maintenance & Development Cost
• When all the organization’s requirements are satisfied by
one database instead of many separate files, the
maintenance and development cost automatically
reduces. 09/10/2024
Advantages of Database
Approach 37
5. Data Sharing
• Sharing means that the same data source is used by multiple
applications.
• Data is centralized and hence can be shared not only by the
existing applications but also new applications can be
developed to operate against the same data.
• The applications that can access same data simultaneously
are called Online Transaction Processing (OLTP) applications
and DBMS uses Concurrency Control Mechanism to ensure that
multiple users can access and update data correctly.
09/10/2024
Advantages of Database
Approach 38
6. Data Integrity (Improved Data Quality)
• Data integrity refers to the correctness of data.
• Integrity constraints or rules ensure that the data stored in the
database is purified and accurate.
7. Improved Security Restrictions
• Database security is the protection of database from unauthorized
disclosure, alteration or destruction.
• DBMS provides strong security measures against such threats.
Some of them are:
• Password checks
• User defined procedures
• Defining user privileges 09/10/2024
09/10/2024
43