Lecture 1 - Introduction To Databaase Management Systems PDF
Lecture 1 - Introduction To Databaase Management Systems PDF
Database Systems
Unit 1 :
Introduction to
Database
Management
Systems
Unit 1 :
Introduction to Database Systems
Topic 1
Objective :
At the end of this unit, you should be able to:
differentiate between data and information.
differentiate between file processing systems and
database approach.
learn about database and database management systems
(DBMS).
Learn about database elements and the functions of
database management systems (DBMS).
Topic 1
Topic 1
Example :
123, 456,
113, 899,
Joseph Tan, Mary Lim
IT1768 Database Systems
Topic 1
Data
IT1768 Database Systems
Processed
BLK NO
123
456
113
899
Information
Organised
5
Topic 1
Example:
DatePurchase Product Qty Amount
DatePaid Payment-Type PaySum StaffReceived
The flat-file style of database are ideal for small amounts of data that needs to
be human readable or edited by hand.
Topic 1
File-Processing System
What is File Processing System?
File Processing Systems store data in separate
computer files.
Example :
Payroll
Officer
Payroll
Processing
Application
Employee
File
Sales
Officer
Customer
Processing
Application
Customer
File
7
Topic 1
Topic 1
Topic 1
10
Topic 1
Database
What is Database ?
A database is a collection of information that is
organized (integrated records) so that it can easily be
accessed, managed, and updated.
A Database Management System (DBMS) is a program
that controls the creation, maintenance and the use of
the database in an organization and its users.
Modern database management systems used a more structured
approach to file management (such as one defined by the Structured
Query Language) and therefore have more complex storage
arrangements.
IT1768 Database Systems
11
Topic 1
Files
Metadata
Indexes
Application metadata
Sales ID
Item Name
Quantity
08-CPU-12
1200
12
Topic 1
13
Topic 1
14
Topic 1
Indexes in Database
Citizen (with a created index on field Race)
NRIC
Name
Race
Gender
S1320936A
Hussan
Malay
Male
S1255660B
Muthu
Indian
Male
S1425898C
Surina
Malay
Female
S1833444D
Johnny
Chinese Male
S1767666E
Devi
Indian
Female
S1653735F
Siti
Malay
Female
For tables with huge number of records, an index can group identical type of
values into clusters and hence it will shorten the retrieving time of records.
NRIC
Name
Race
Gender
S1320936A
Hussan
Malay
Male
S1425898C
Surina
Malay
Female
S1653735F
Siti
Malay
Female
50%
15
Topic 1
16
Topic 1
Module Group
065689X
Don Ho
Male
IT2761-D3
063592P
Muthu
Male
IT2761-D5
17
Topic 1
18
Topic 1
Database Approach
Database Approach:
Description of data is stored separately and
independently.
Sharing of data by different programs.
19
Topic 1
Database
Payroll
Processing
Application
DBMS
Employee File
Customer File
Sales
Officer
Users
IT1768 Database Systems
Customer
Processing
Application
Application
Programs
DBMS : Database
Management System
Database
20
Topic 1
1. Integrated Data
All application data are stored in the database.
It improves data sharing, consistency and integrity.
Programmer is not responsible for coordinating files;
instead, the DBMS did it.
21
Topic 1
3. Program-data independence
Record formats are stored in database itself and
accessed by DBMS, not by the application program
Minimise the impact of data format changes on
application program.
22
Topic 1
2. Size
It requires large amount of disk space and substantial
amount of memory to run efficiently.
3. Cost of DBMS
DBMS iscostly in term of licenses and maintenance cost
5. Cost of conversion
Efforts is required to convert the existing applications to run
on DBMS and cost of training staff to use the new systems.
IT1768 Database Systems
23
Topic 1
24
Topic 1
Function of DBMS
1.Data Definition
- DBMS provides functions to define the structure of the
data in the application. These include defining and
modifying the record structure, the type and size of fields
and the various constraints/conditions to be satisfied by
the data in each field.
25
Topic 1
Function of DBMS
4. Transaction support
- DBMS provides a mechanism to ensure that either all the
updates corresponding to a given transaction are made
(Commit) or that none of them are made (Abort).
6. Recovery Services
- DBMS is equipped with a mechanism for recovering the
database after a system failure or in the event that the
database is damaged.
26
Topic 1
Function of DBMS
7.Authorization Services
- DBMS handles security and privacy in the system by providing
a mechanism to ensure that only authorized users can access
the database.
9.Integrity Services
- DBMS has a mechanism to preserve the relationships among
different related records by ensuring that both the data in
the database and changes to the data follow certain rules.
IT1768 Database Systems
27
Topic 1
Function of DBMS
11.Utility Services
A DBMS should provide a set of utility services like:
- Import facilities
- Monitoring facilities
- Statistical analysis programs
- Index organization
- Garbage collection and reallocation
IT1768 Database Systems
28
Topic 1
29
Topic 1
Summary
http://www.softwaretrainingtutorials.com/access-2007-ms.php
30
Topic 1
Review Question
...1
1.
2.
3.
Conceptual
External
Internal
Application
31
Topic 1
Review Question
...2
1.
2.
3.
Conceptual
External
Internal
Application
32