ICT Lecture 10
ICT Lecture 10
Communication Technologies
Lecture 10
Presented By
Dr. Muhammad Umar Javed
Assistant Professor
Department of Computer Science
Data
A collection of raw facts and figures related to an
object
Object may be a person, an organization, an
event, or any other thing that is significant in a
system
Data may be in form of text, numbers, images,
sounds, and videos
Collected for different purposes
Processed to produce meaningful information
reports, charts, and web pages, etc.
Example
May be collected to prepare the result of an
examination of students
To completely understand it must be processed
according to requirements in a system
Information
Usually, collected data is not in proper format and does
not give proper meanings
Various operations are performed to get the required
results that give proper and useful meanings known as
information
Information means processed data
Then used for decision-making, analytical purposes,
and fault diagnosis, etc.
Data is processed using various techniques
Manual File-Based System
Example:
College/University manual file-based system for
maintaining records of students and courses of different
faculties etc.
Students record file used to store records of each
student
Students fee file used to store fee records of
students
Students result file used to store the result of
examinations of students
Students course file used to store data of courses
taken by students
Disadvantages
NADRA
Library
College/University
Bank Accounts
E-mail Accounts
Database Management
System (DBMS)
A collection of programs that are used to
create, maintain, and extract data from
databases
It is general-purpose software
This is often called database software
Different types of DBMSs are available,
ranging from small systems that run on
personal computers to huge systems that
run on mainframes
Functions of DBMS
Application Programmers
The users who write the application programs in programming
languages (such as Java, C++, or Visual Basic) to interact with
databases are called Application Programmer.
Database Administrators (DBA)
A person who manages the overall DBMS is called a database
administrator or simply DBA.
End-Users
The end-users are those who interact with the database
management system to perform different operations by using
the different database commands such as insert, update,
retrieve, and delete on the data, etc.
Advantages of Database
Data Sharing
Allows to share (access) data by any number of
users simultaneously.
Data Integration
In traditional file system, data is stored in
separate files and it is difficult to extract the
required information.
In database, data is stored in tables.
A single database may contain multiple tables.
The relationships can be created between tables
.
This makes easier to retrieve and update data.
Advantages of Database
Data Integrity
Data integrity refers to the correctness and consistency of data.
It is expressed in terms of certain constraints.
The consistency rules are applied on database to check that the
correct data is entered in the database, before storing.
Data Atomicity
Atomicity means that either one transaction should take place as a
whole or it should not take place at all.
If the any process is not completed successfully then the system fails,
and this is known as data atomicity problem.
In database partially completed tasks are rolled back.
Only consistent data exists within the database.
Advantages of Database
Data Security
It is the protection of the database from unauthorized users.
Only authorized persons are allowed to access the database.
Control Over Concurrency
In some situations, two or more users may access the same file
simultaneously.
It is possible that they will interfere with each other.
For example, two or more users are trying to update the same
record, then one may overwrite the values recorded by another
user. This may result in loss of information.
Most databases control the concurrency so that transactions are
recorded with accuracy.
Advantages of Database
Data Independence
The data stored in a database is independent of the application
programs that accesses the data from database.
The data structure of database and application program that
uses data are separate from each other.
The user can easily change the structure of database without
modifying the application program.
Similarly, user can modify application programs without
changing structure of database.
Disadvantages of Database
Network Model
A network database is a database model where numerous records or
files can link to multiple owner files and vice versa. The model can
be represented by an upside-down tree, where every member's
information (branch) attaches to the bottom of the tree (owner).
DBMS Database Models
Entity-relationship Model
An Entity–relationship model (ER model) describes the structure of a
database with the help of a diagram, which is known as Entity
Relationship Diagram (ER Diagram). An ER model is a design or
blueprint of a database that can later be implemented as a
database.
Relational Model
A relational database is a collection of information that organizes
data in predefined relationships where data is stored in one or more
tables (or "relations") of columns and rows, making it easy to see and
understand how different data structures relate to each other.
DBMS Database Models
DBMS Database Models
Lecture End