Introduction To Database Concepts
Introduction To Database Concepts
2
1.1. QUALITATIVE VS QUANTITATIVE
3
1.2. EXAMPLE:
Quantitative:
Discrete:
Qualitative:
He has 4 legs
He is brown and black He has 2 brothers
Continuous:
He has long hair
He weighs 25.5 kg 4
He has lots of energy
He is 565 mm tall
CLASS WORK
Read the following examples and then decide if the example is qualitative (1) or quantitative
(2).
1- The bird has 2 wings.
2. Qualitative
3. Quantitative
4. Qualitative
5. Quantitative
7. Qualitative
7
3. DATABASE MANAGEMENT SYSTEM (DBMS)
8
3.1 PURPOSE OF DATABASE SYSTEMS
Enterprise Information
Sales
Accounting
Human resources
Manufacturing
Online retailers
10
Banking and Finance
Banking
Credit card transactions
Finance
Universities
Airlines
Telecommunication
11
4.1 CHARACTERISTIC OF A GOOD DATABASE
12
CONT…
13
Database should also support ACID property
5. FILE PROCESSING SYSTEM
14
15
6. ADVANTAGES OF FILE PROCESSING SYSTEM
Ex:
Data Redundancy:
If a student register for a double major (Computer Science,
Maths), the address and the phone number of that student may
appear in both department files. This may lead to higher
storage and access cost.
Inconsistency:
The student may require an address change; it may not be 16
updated in all the departments.
2. DIFFICULTY IN ACCESS THE DATA
Ex:
17
3. DATA ISOLATION
Data are scattered in various files, and files may in
different format, writing new application programs to
retrieve the data is difficult.
Ex:
Imagine we have to generate a single report of student,
who is studying in particular class, his study report, his
library book details, and hostel information. All these
information are stored in different files.
18
4. INTEGRITY PROBLEMS
Ex:
19
5. ATOMICITY PROBLEMS
In many applications, it is crucial that, is a failure occurs,
the data be restored to the consistent state that existed to
the prior the failure. It is difficult to ensure the atomicity
in file processing system.
Ex:
Ex:
Ex:
22
7. DATA ABSTRACTION
24
7.2 UNIVERSITY DATABASE EXAMPLE
25
At the physical level, department, course or student
records can be stored as a block of consecutive storage
locations, compiler hides this level to the programmers.
Database administrators may be aware of certain details of
physical organization.
At the logical level, records described as type definitions
Type:student=record
id:char(7);
name:char(20);
dept_name: char(10);
end;
At the View Level, all the required data can be retrieved
with restriction also.
26