01-Introduction To Database
01-Introduction To Database
Introduction to Database
System
1 www.pktutorials.com
About me!
▪ BSc Computer Science– Gomal University, Pakistan (2002)
2 www.pktutorials.com
About me!
3 www.pktutorials.com
Course Learning Outcomes (CLO)
4 www.pktutorials.com
Course Contents
5 www.pktutorials.com
Reference Books
6 www.pktutorials.com
Reference Books
7 www.pktutorials.com
Reference Books
8 www.pktutorials.com
Assessment Methods
9 www.pktutorials.com
Data Storage System
▪ Database Approach
10 www.pktutorials.com
Manual File Storage
11 www.pktutorials.com
Disadvantages of Manual Storage System
▪ Files are kept in drawers and are stored in filing pockets one behind the other
12 www.pktutorials.com
Traditional File Processing System
13 www.pktutorials.com
File Processing System - Example
14 www.pktutorials.com
Traditional File Processing System
15 www.pktutorials.com
File vs Database
Files:
A collection of records or documents dealing with one organization, person,
area, or subject. It could either be:
◦ Manual files (Paper)
◦ Computer Files
Database:
A shared collection of similar records with relationships between records.
◦ Statistical, Business Data
16 www.pktutorials.com
File vs Database
File Processing System:
Collection of application programs that performs services for the end-users
(e.g. Reports)
Each program defines and maintains its own data
Database:
A shared collection of similar records with relationships between records.
◦ Statistical, Business Data
17 www.pktutorials.com
Database vs File System
18 www.pktutorials.com
Limitations of FPS
Separation and isolation of data
◦ Each program maintains its own set of data. Users of one program may be unaware of
potentially useful data held by other programs.
Duplication of data
◦ Same data is held by different programs/department. Wasted space and potentially different
values and/or different formats for the same item.
Data dependence
◦ File structure is defined in the program code with path.
19 www.pktutorials.com
Limitations of FPS
Incompatible file formats
◦ Programs are written in different languages, and so cannot easily
access each others' files.
Integrity Problems
◦ Integrity constraints (e.g. account_balance > 0) became “buried” in
program code rather than being stated explicitly
◦ Hard to add new constraint or update existing one
◦ File in the folder cannot keep such conditions
20 www.pktutorials.com
Limitations of FPS
21 www.pktutorials.com
Database Approach
22 www.pktutorials.com
Advantages of Database Approach
Program-data independence
◦ The separation of data descriptions from the application programs that use
the data.
◦ Allows the data to change without changing the application programs.
Database is a Package
23 www.pktutorials.com
Database Management System
DBMS is a software package that enables user to create and
maintain databases. It facilitates:
◦ Defining a database that involves specifying the data types,
structures, and constraints for the data to be stored in the
database.
◦ Constructing a database which is the process of storing the
data.
◦ Manipulating a database such as functions of querying and
sharing the database objects, updating the database, and
generating reports from the data.
Database and DBMS software together constitute a database
system.
24 www.pktutorials.com
Examples of DBMS
◦ Oracle
◦ IBM DB2
◦ Ingress
◦ Teradata
◦ MS SQL Server
◦ MS Access
◦ MySQL etc.
25 www.pktutorials.com
Data vs. Information vs. Knowledge
▪ Data: raw and unorganized facts that required to be processed to
make it meaningful
26 www.pktutorials.com
Database
▪ Data: known facts that can be recorded and that have some meaning
27 www.pktutorials.com
Types of Data
▪ Types of data:
- Structured data is highly-organized and formatted in a way so it's easily
searchable.
28 www.pktutorials.com
Types of Data
29 www.pktutorials.com
Types of Data
30 www.pktutorials.com
Meta Data
- Database definition
- Data about data is called metadata (information about data).
- Data that describe the properties of end user data and the context of the data.
- Summarizes basic information about data
- Make it easier to find, use and reuse particular instances of data.
31 www.pktutorials.com
Meta-Data vs Actual Data
32 www.pktutorials.com
Typical DBMS Functionalities
33 www.pktutorials.com
Database Manipulation
34 www.pktutorials.com
DBMS Example
35 www.pktutorials.com
DBMS Example
36 www.pktutorials.com
Example, university database
37 www.pktutorials.com
Example, university database
38 www.pktutorials.com
Use a DB when!
▪ sharing of data
39 www.pktutorials.com
When not use DBMS!
▪ No multiple users
40 www.pktutorials.com
Key people in DBMS
▪ End users
41 www.pktutorials.com
Database Design is important?
▪ Database design focuses on design of a database structure for end-user data
▪ Well-designed database:
- Facilitates data management
- Generates valuable information
- Results in realizing most of the DB advantages
▪ Poorly-designed database:
- Causes many problems!!
- Causes difficult-to-trace errors
42 www.pktutorials.com
Key advantages of DBMS
▪ Improved data sharing
▪ There could be many users, each may require a different view of the data.
43 www.pktutorials.com
Advantages of DB
Program Data-Independence
▪ The separation of data description from the application program is called data independence.
▪ Data descriptions are store in a central location called repository.
44 www.pktutorials.com
Advantages of DB
45 www.pktutorials.com
Advantages of DB
46 www.pktutorials.com
Advantages of DB
47 www.pktutorials.com
Cost and Risk of the Database Approach
48 www.pktutorials.com
Advantages of DB
49 www.pktutorials.com
THANKS
50 2/21/2024 www.pktutorials.com