Unit#1 Introduction - Fall 2024
Unit#1 Introduction - Fall 2024
Database Systems
— Unit 1 —
Introduction
3
Course Overview
Introduction
File Processing System (FPS)
Database Architecture and Components
Structured Query Language (SQL)
Data Query Language – DQL (SELECT Statement)
Database Development and Data Modeling
Relational Data Model and Relational Keys
Integrity Constraints and Rules
SQL Functions
Entity-Relationship (E-R) Model
SQL Joins
Subqueries
Creating Database Tables (Data Definition Language - DDL)
4
Course Overview
Normalization
SQL – Data Manipulation Language (DML)
Database Objects (Views, Indexes, …)
Transaction Management
Controlling User Rights & Access (Data Control Language - DCL)
Concurrency Control
Procedural SQL (PL/SQL)
Stored Procedures, Functions, Triggers
Distributed Databases
Big Data and NoSQL
Data Quality and Integration
Future Trends, Revision
5
Lecture Outline
Introduction
Data? Information? Database?
File Processing System (FPS)
Drawbacks of FPS
Database System or Integrated Database
Environment(IDE)
Advantages of IDE
Types of Databases
6
Introduction
A database is a collection of related data.
Data refers to the raw facts & figures of an ENTITY.
An entity can be People, Object, Event, Process, Concept etc.
The selection of data to be included in a database depends
upon organizational objectives and information requirements.
The part of real world presented in a database is called mini-
world or universe of discourse.
Data characteristics
Large volume of facts
Difficult to interpret
7
Data
8
Data vs. Information
Information is derived from data.
Information is the processed data.
The representation and amount
of information depends upon the
requirements of a user.
Drill-down, Rollup operations.
When data is processed and organized into a form
needed for its application, it is called an Information
Product (IP).
Information may be presented either Textually or
Graphically or both
9
Information
Information is used to reveal the meaning of data.
Accurate, reliable, relevant and timely information is key to
good decision making.
Information is now increasingly viewed as an organizational
asset (Redman, 2008) which can be used to improve
organizational performance and help an organization gain a
competitive advantage in the marketplace.
Dunn's Book of Life (1946)
“Each person in the world creates a Book of Life. This Book
starts with birth and ends with death. Its pages are made up
of the records of the principal events in life.
Database/Record linkage is the name given to the process
of assembling the pages of this Book into a volume.”
10
Increasing Need of Database Systems
• The Model of Generating/Consuming Data has
Changed
ld Model: Few companies are generating data, all others are consuming data
11
12
Exponential Data Growth
13
Data Dynamics
The amount of available data in the modern
computer world is literally exploding (3 Vs: Volume,
Velocity, Variety)
The modern data sources/types include multimedia
data, sensor’s data, data on web and so on.
To get most out of data, we require tools than can
simplify the task of managing the data and extract
useful information out of it in timely fashion.
Data Hierarchy
Field (Data Item) Record
Database File
14
Database
Database is a shared collection of logically related data, and a
description of this data, designed to meet the information
requirements of multiple users in an organization.
Database is an organized collection of data (and metadata)
about entities and relationships among entities.
Metadata: Data that describes properties or characteristics
of other data OR it is “data about data”.
The description of data is also known as system catalog or
data dictionary.
Metadata allows database designers & users to understand
what data exists and what the data mean?
Metadata describes the domain (set of possible values) and
the constraints for a data item.
15
Metadata Example
17
Examples of Database
Applications
Databases play a critical role in almost all areas where
computers are used.
Databases are everywhere …
• Student / Employee’s Information System
• Library System
• Hotel / Airline Reservation System
• Billing System
• Stock / Inventory System
• Payroll System
• Geographical Information Systems (GISs)
• Data Warehouses
19
Record Keeping Techniques
1. Manual Record Keeping.
2. Computerized Record Keeping
a) File Processing System.
b) Database System or Integrated Database
Environment. (The paradigm shift)
App – 1
File – 1 (operations + data descriptions)
App – 2
File – 2 (operations + data descriptions)
App – n
File – n (operations + data descriptions)
D App – 1 (Operations)
B
App – 2 (Operations)
Database
(Data + M
Data Descriptions)
S App – n (Operations)
40
Advantages of Database Approach
8. Improved Accessibility & Responsiveness
• In File Processing System, data accessibility is quite difficult
as it is procedural based. You should know the detailed
procedural steps. HOW TO DO?
• On the other hand, accessing data is lot easier in DBMS with
the help of a non procedural language – SQL. You only need
to know the simple commands or in other words WHAT TO
DO?
• SQL allows interactive access by users.
9. Improved Decision Making
• Consolidated reports
• Ad-hoc queries
• Multiple views of data
Database Systems – Asif Sohail Slide 41
Advantages of Database Approach
10. Efficient Query Processing
•Specialized data structures and search techniques
•Indexing
•Buffering or caching module
•Query processing and optimization
11. Backup & Recovery
•The backup and recovery subsystem of DBMS provides efficient
techniques for database recovery.
12. Concurrency Control
•Simultaneous access to the shared data is possible in non-
conflicting manner.
• Categories are:
– Personal computer databases(Single User)
– Workgroup databases(Multi-user)
– Department databases (Multi-user)
– Enterprise database (Multi-user)
Workgroup Databases
• Workgroup: relatively small group of people who
collaborate on same project/application.
• A workgroup DB supports the collaborative efforts of a
workgroup.
• Allows data sharing.
• Its model is shown on the next fig:
Database Systems – Asif Sohail Slide 49
Continued…
LAN
DB Server
Workgroup
DB
Workgroup DB on LAN
(Method of Data Sharing)
Enterprise Databases
• DB scope is the entire organization
• To support organization-wide operations & decision
making.
Hospital
Medical
Clinic
Corporate
Hospital Office
Nursing Data
Home Warehouse
Medical
Clinic