SlideShare a Scribd company logo
Institute of SouthernPunjab,
Multan
Mr. Saif ur Rehman Khan
BS (Computer Science)
MS (Data Science, and Computer Science)
Honors:
Certified Android Developer, Research Assistant
E-Mail: saifurrehman.khan@outlook.com
2
Database Systems
Lecture#1
Introduction to Database
Course- Objectives
 Introduce basic database concepts.
 Data Storage & retrieval techniques.
 Database Design.
 Different data models.
3
Course Primarily- Objectives
 Relational data model.
 Database Management System (DBMS) concepts.
4
Chapter 1 - Objectives
 Some common uses of database systems.
 Characteristics of file-based systems.
 Problems with file-based approach.
 Meaning of the term database.
 Meaning of the term Database Management System
(DBMS).
5
Chapter 1 - Objectives
 Typical functions of a DBMS.
 Major components of the DBMS environment.
 History of the development of DBMS.
 Advantages and disadvantages of DBMS.
6
Examples of Database Applications
 Purchases from the supermarket
 Purchases using your credit card
 Booking a holiday at the travel agents
 Using the local library
 Taking out insurance
 Renting a video
 Using the Internet
 Studying at university
7
History:
 Computers initially used for computational / engineering
process.
 After some time it has been thought that why should not used
computer for commercial application. So in this way some
languages were being used for such purpose like COBOL
language.
 Commercial application introduced File Processing System.
8
File-Based Systems
 Collection of application programs that perform services
for the end users (e.g. reports).
 Each program defines and manages its own data.
9
File-Based Systems
 Each system maintain data and processing its own.
 Each system has own data and program/application. Each
system store there own data separately and process
independently.
 Each system have own program for the purpose of processing
(Read / Store / Minor Calculation / output on the screen).
 In each system program and data are interdependence because
program and data are depended on one another.
10
File-Based Processing
11
Limitations of File-Based Approach
 Program-Data Dependence
 All programs maintain metadata for each file they use
 Duplication of Data
 Different systems/programs have separate copies of the same data
 Limited Data Sharing
 No centralized control of data
 Lengthy Development Times
 Programmers must design their own file formats
 Excessive Program Maintenance
 80% of information systems budget
12
Limitations of File-Based Approach
 Incompatible file formats
 Programs are written in different languages, and so cannot easily
access each other’s files.
 Fixed Queries of application programs
 Programs are written to satisfy particular functions.
 Any new requirement needs a new program.
13
Problems with Data Dependency
 Each application programmer must maintain his/her own data
 Each application program needs to include code for the meta
data of each file
 Each application program must have its own processing
routines for reading, inserting, updating, and deleting data
 Lack of coordination and central control
 Non-standard file formats
14
15
Problems with Data Dependency
 If data is being changed then the program must be changed and vice
versa For example if a library system has some attributes about book
like.
 Book_id
 Book_name
 Book_title
 Book_author
And after some time we add an other attribute like book_edition. So
you need to change data but on other hand you have to change the
program as well because program is dependent on data and vice
versa It means that if you change the data in library system you will
have to change Examination and Registration systems.
16
Figure 1-3 Old file processing systems at Pine Valley
Furniture Company
Duplicate Data
17
Problems with Data Redundancy
 Waste of space to have duplicate data
 Causes more maintenance issues
The biggest problem:
 Data changes in one file could cause inconsistencies
 Compromises in data integrity
18
Data Duplication:
19
No data sharing concept and inconsistency
 Attribute Address appears in two systems, Examination
and Registration. (Duplication)
 It creates inconsistency
 for example if a student changes his address in registration
system and not updated examination
 Address of student is different for registration information
communication and examination information communication.
20
SOLUTION:
The DATABASE Approach
21
Definitions
 Database:
 A database is a shared collection of logically related data,
which is stored to meet the requirement of different users of
an organization.
 Data: Raw facts about any thing.
 stored representations of meaningful objects and events
 Structured: numbers, text, dates
 Unstructured: images, video, documents
22
Definition1
 Logically related data: for example a man is working in a company
and we want to get facts/data about such worker. We can gather many
data like
 Necessary Data
 Name
 FName
 Address
 So many….
 Unnecessary Data
 Size of shoe
 Hair color
 Height
 Weight
 So many….
23
Definition1
 Shared Collection: There are some data that is common for different
systems. Such data must not be duplicated and that should be shared
25
Definition 2:
 A database is a self describing collection of integrated records.
 Self describing:
 In database, there are not only data stored but also
structure/definition/checks of that data. (In DBMS it is called
Schema/meta data. We will see later in more detail)
 Meta data is the part of database
26
Definition 2:
 Integrated record:
 Records are linked to one another
 When you see a record, to understand full meaning of that record
you will have to consider another record.
 It means that for understanding of a record you need another
record which is linked with it.
27
Definitions
 Information: data processed to increase knowledge of the person
using the data.
 The processed data is called information (adding some knowledge).
 Process means to add something to data.
 To name/ label data is also a process.
 Process can also add some knowledge, some information to the data.
28
Graphical displays turn data into useful
information that managers can use for
decision making and interpretation
Figure 1-1b Summarized data
30
Descriptions of the properties or characteristics of the
data, including data types, field sizes, allowable
values, and data context
31
The DATABASE Approach
 Data sharing (common data is being stored at one place rather than
storing the same on separate terminals)
 Data independence: Both data and program are now independent, if
you change data in one system, only that system will require the
change.
 Controlled Redundancy (Duplication)
 Better Data Integrity
 Data consistency
 Better data security
32
 Control of data redundancy
 Data & resource sharing eliminates or at least minimize
duplication
 Better concurrency control
 Multiple users access the data at the same time e.g. ATM
 Better Backup and Recovery procedure
The DATABASE Approach
33
The DATABASE Approach
34
Database Management System
DBMS manages data resources like an operating system manages hardware resources
 A software system that is used to create, maintain, and provide
controlled access to user databases
Order Filing
System
Invoicing
System
Payroll
System
DBMS
Central database
Contains employee,
order, inventory,
pricing, and
customer data
35
Database Management System
 (Database) application program:
a computer program that interacts with database by issuing an
appropriate request (SQL statement) to the DBMS.
36
Database Approach: Parts of DB
 Data Retrieval
 Data Manipulation Language (DML).
 Transaction Processing (TP)
 Data definition language (DDL).
 Data Control Language (DCL).
37
Views
 Allows each user to have his or her own view of the
database.
 A view is essentially some subset of the database.
38
Views - Benefits
 Reduce complexity
 Provide a level of security
 Provide a mechanism to customize the appearance of the
database
 Present a consistent, unchanging picture of the structure of
the database, even if the underlying database is changed
39
Components of DBMS Environment
40
Components of DBMS Environment
 Hardware
 Can range from a PC to a network of computers.
 Software
 DBMS, operating system, network software (if necessary) and
also the application programs.
 Data
 Used by the organization and a description of this data called the
schema.
41
Components of DBMS Environment
 Procedures
 Instructions and rules that should be applied to the
design and use of the database and DBMS.
 People
42
Roles in the Database Environment
 Data Administrator (DA)
 Database Administrator (DBA)
 Database Designers (Logical and Physical)
 Application Programmers
 End Users (naive and sophisticated)
43
History of Database Systems
 First-generation
 Hierarchical and Network
 Second generation
 Relational
 Third generation
 Object-Relational
 Object-Oriented
44
Advantages of DBMSs
 Control of data redundancy
 Data consistency
 More information from the same amount of data
 Sharing of data
 Improved data integrity
 Improved security
 Enforcement of standards
 Economy of scale
45
Advantages of DBMS
 Balance conflicting requirements
 Improved data accessibility and responsiveness
 Increased productivity
 Improved maintenance through data independence
 Increased concurrency
 Improved backup and recovery services
46
Disadvantages of DBMSs
 Complexity
 Size
 Cost of DBMS
 Additional hardware costs
 Cost of conversion
 Performance
 Higher impact of a failure
47
Summary of Lecture
 Some common uses of database systems.
 Characteristics of file-based systems.
 Problems with file-based approach.
 Meaning of the term database.
 Meaning of the term Database Management System
(DBMS).
48
Summary of Lecture
 Typical functions of a DBMS.
 Major components of the DBMS environment.
 History of the development of DBMS.
 Advantages and disadvantages of DBMS.
49
50
END OF LECTURE 01

More Related Content

What's hot

Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02
Beni Krisbiantoro
 
data base manage ment
data base manage mentdata base manage ment
data base manage ment
kaleemullah125
 
Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
 
Modern database management jeffrey a. hoffer, mary b. prescott,
Modern database management   jeffrey a. hoffer, mary b. prescott,  Modern database management   jeffrey a. hoffer, mary b. prescott,
Modern database management jeffrey a. hoffer, mary b. prescott,
BlackIce86
 
Cp 121 lecture 01
Cp 121 lecture 01Cp 121 lecture 01
Cp 121 lecture 01
ITNet
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbmssethu pm
 
Database Lecture Notes
Database Lecture NotesDatabase Lecture Notes
Database Lecture Notes
FellowBuddy.com
 
Database management systems
Database management systemsDatabase management systems
Database management systems
Joel Briza
 
Database Systems
Database SystemsDatabase Systems
Database Systems
Usman Tariq
 
File system-and-database-chapter01-connoly
File system-and-database-chapter01-connolyFile system-and-database-chapter01-connoly
File system-and-database-chapter01-connolyTemma Tems
 
23246406 dbms-unit-1
23246406 dbms-unit-123246406 dbms-unit-1
23246406 dbms-unit-1
Piyush Kant Singh
 
Database introduction
Database introductionDatabase introduction
Database introduction
Harry Potter
 
Database design challenges conflicting goals
Database design challenges conflicting goalsDatabase design challenges conflicting goals
Database design challenges conflicting goalsmarkilyn
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
Nishant Munjal
 
Chapter 01 Fundamental of Database Management System (DBMS)
Chapter 01  Fundamental of Database Management System (DBMS)Chapter 01  Fundamental of Database Management System (DBMS)
Chapter 01 Fundamental of Database Management System (DBMS)
Abdurehman Mahmud
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Usman Tariq
 
Database System Concepts
Database System ConceptsDatabase System Concepts
Database System Concepts
Ranilesh Raveendran
 

What's hot (20)

Unit 01 dbms
Unit 01 dbmsUnit 01 dbms
Unit 01 dbms
 
Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02Database design, implementation, and management -chapter02
Database design, implementation, and management -chapter02
 
data base manage ment
data base manage mentdata base manage ment
data base manage ment
 
Data base management system
Data base management systemData base management system
Data base management system
 
Modern database management jeffrey a. hoffer, mary b. prescott,
Modern database management   jeffrey a. hoffer, mary b. prescott,  Modern database management   jeffrey a. hoffer, mary b. prescott,
Modern database management jeffrey a. hoffer, mary b. prescott,
 
Cp 121 lecture 01
Cp 121 lecture 01Cp 121 lecture 01
Cp 121 lecture 01
 
Database - Design & Implementation - 1
Database - Design & Implementation - 1Database - Design & Implementation - 1
Database - Design & Implementation - 1
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
 
Database Lecture Notes
Database Lecture NotesDatabase Lecture Notes
Database Lecture Notes
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Database Systems
Database SystemsDatabase Systems
Database Systems
 
File system-and-database-chapter01-connoly
File system-and-database-chapter01-connolyFile system-and-database-chapter01-connoly
File system-and-database-chapter01-connoly
 
Ch01
Ch01Ch01
Ch01
 
23246406 dbms-unit-1
23246406 dbms-unit-123246406 dbms-unit-1
23246406 dbms-unit-1
 
Database introduction
Database introductionDatabase introduction
Database introduction
 
Database design challenges conflicting goals
Database design challenges conflicting goalsDatabase design challenges conflicting goals
Database design challenges conflicting goals
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Chapter 01 Fundamental of Database Management System (DBMS)
Chapter 01  Fundamental of Database Management System (DBMS)Chapter 01  Fundamental of Database Management System (DBMS)
Chapter 01 Fundamental of Database Management System (DBMS)
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
 
Database System Concepts
Database System ConceptsDatabase System Concepts
Database System Concepts
 

Similar to Db lecture 1

Fundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database UsersFundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database Users
Mustafa Kamel Mohammadi
 
DBMS-1.pptx
DBMS-1.pptxDBMS-1.pptx
DBMS-1.pptx
kingVox
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
Smriti Jain
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
RituBhargava7
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
LisaMalar
 
data base unit one on what is databases.pptx
data base unit one on what is databases.pptxdata base unit one on what is databases.pptx
data base unit one on what is databases.pptx
mulukendemis44
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
AhmadShah Sultani
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
Sreenivas R
 
1. Chapter One.pdf
1. Chapter One.pdf1. Chapter One.pdf
1. Chapter One.pdf
fikadumola
 
Mis chapter 7 database systems
Mis chapter 7 database systemsMis chapter 7 database systems
Mis chapter 7 database systems
Filmon Habtemichael Tesfai
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdf
MuniraALmogren
 
Detailed overview on Database and database system
Detailed overview on Database and database systemDetailed overview on Database and database system
Detailed overview on Database and database system
samreenghauri786
 
Database & dbms
Database & dbmsDatabase & dbms
Database & dbms
Diana Diana
 
DBS Theory Week 1 including relationships and relational database
DBS Theory Week 1 including relationships and relational databaseDBS Theory Week 1 including relationships and relational database
DBS Theory Week 1 including relationships and relational database
walaahuluu
 
TID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseTID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseWanBK Leo
 
DataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPTDataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPT
BhaskarPatil24
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
parveen204931475
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Siti Ismail
 

Similar to Db lecture 1 (20)

Dbms models
Dbms modelsDbms models
Dbms models
 
Fundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database UsersFundamentals of Database system - Databases and Database Users
Fundamentals of Database system - Databases and Database Users
 
DBMS-1.pptx
DBMS-1.pptxDBMS-1.pptx
DBMS-1.pptx
 
Dbms unit01
Dbms unit01Dbms unit01
Dbms unit01
 
Database Management System Introduction
Database Management System IntroductionDatabase Management System Introduction
Database Management System Introduction
 
File systems versus a dbms
File systems versus a dbmsFile systems versus a dbms
File systems versus a dbms
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
 
data base unit one on what is databases.pptx
data base unit one on what is databases.pptxdata base unit one on what is databases.pptx
data base unit one on what is databases.pptx
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
 
1. Chapter One.pdf
1. Chapter One.pdf1. Chapter One.pdf
1. Chapter One.pdf
 
Mis chapter 7 database systems
Mis chapter 7 database systemsMis chapter 7 database systems
Mis chapter 7 database systems
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdf
 
Detailed overview on Database and database system
Detailed overview on Database and database systemDetailed overview on Database and database system
Detailed overview on Database and database system
 
Database & dbms
Database & dbmsDatabase & dbms
Database & dbms
 
DBS Theory Week 1 including relationships and relational database
DBS Theory Week 1 including relationships and relational databaseDBS Theory Week 1 including relationships and relational database
DBS Theory Week 1 including relationships and relational database
 
TID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To DatabaseTID Chapter 10 Introduction To Database
TID Chapter 10 Introduction To Database
 
DataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPTDataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPT
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 

Recently uploaded

Brand Identity For A Sportscaster Project and Portfolio I
Brand Identity For A Sportscaster Project and Portfolio IBrand Identity For A Sportscaster Project and Portfolio I
Brand Identity For A Sportscaster Project and Portfolio I
thomasaolson2000
 
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaInteractive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
23211a7274
 
Exploring Career Paths in Cybersecurity for Technical Communicators
Exploring Career Paths in Cybersecurity for Technical CommunicatorsExploring Career Paths in Cybersecurity for Technical Communicators
Exploring Career Paths in Cybersecurity for Technical Communicators
Ben Woelk, CISSP, CPTC
 
Luke Royak's Personal Brand Exploration!
Luke Royak's Personal Brand Exploration!Luke Royak's Personal Brand Exploration!
Luke Royak's Personal Brand Exploration!
LukeRoyak
 
Transferable Skills - Your Roadmap - Part 1 and 2 - Dirk Spencer Senior Recru...
Transferable Skills - Your Roadmap - Part 1 and 2 - Dirk Spencer Senior Recru...Transferable Skills - Your Roadmap - Part 1 and 2 - Dirk Spencer Senior Recru...
Transferable Skills - Your Roadmap - Part 1 and 2 - Dirk Spencer Senior Recru...
Dirk Spencer Corporate Recruiter LION
 
Heidi Livengood Resume Senior Technical Recruiter / HR Generalist
Heidi Livengood Resume Senior Technical Recruiter / HR GeneralistHeidi Livengood Resume Senior Technical Recruiter / HR Generalist
Heidi Livengood Resume Senior Technical Recruiter / HR Generalist
HeidiLivengood
 
原版制作(RMIT毕业证书)墨尔本皇家理工大学毕业证在读证明一模一样
原版制作(RMIT毕业证书)墨尔本皇家理工大学毕业证在读证明一模一样原版制作(RMIT毕业证书)墨尔本皇家理工大学毕业证在读证明一模一样
原版制作(RMIT毕业证书)墨尔本皇家理工大学毕业证在读证明一模一样
atwvhyhm
 
How Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
How Mentoring Elevates Your PM Career | PMI Silver Spring ChapterHow Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
How Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
Hector Del Castillo, CPM, CPMM
 
Personal Brand exploration KE.pdf for assignment
Personal Brand exploration KE.pdf for assignmentPersonal Brand exploration KE.pdf for assignment
Personal Brand exploration KE.pdf for assignment
ragingokie
 
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdfDOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
Pushpendra Kumar
 
How to Master LinkedIn for Career and Business
How to Master LinkedIn for Career and BusinessHow to Master LinkedIn for Career and Business
How to Master LinkedIn for Career and Business
ideatoipo
 
皇冠体育- 皇冠体育官方网站- CROWN SPORTS| 立即访问【ac123.net】
皇冠体育- 皇冠体育官方网站- CROWN SPORTS| 立即访问【ac123.net】皇冠体育- 皇冠体育官方网站- CROWN SPORTS| 立即访问【ac123.net】
皇冠体育- 皇冠体育官方网站- CROWN SPORTS| 立即访问【ac123.net】
larisashrestha558
 
How to create an effective K-POC tutorial
How to create an effective K-POC tutorialHow to create an effective K-POC tutorial
How to create an effective K-POC tutorial
vencislavkaaa
 
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdfRECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
AlessandroMartins454470
 
135. Reviewer Certificate in Journal of Engineering
135. Reviewer Certificate in Journal of Engineering135. Reviewer Certificate in Journal of Engineering
135. Reviewer Certificate in Journal of Engineering
Manu Mitra
 
New Explore Careers and College Majors 2024.pdf
New Explore Careers and College Majors 2024.pdfNew Explore Careers and College Majors 2024.pdf
New Explore Careers and College Majors 2024.pdf
Dr. Mary Askew
 
Chapters 3 Contracts.pptx Chapters 3 Contracts.pptx
Chapters 3  Contracts.pptx Chapters 3  Contracts.pptxChapters 3  Contracts.pptx Chapters 3  Contracts.pptx
Chapters 3 Contracts.pptx Chapters 3 Contracts.pptx
Sheldon Byron
 
han han widi kembar tapi beda han han dan widi kembar tapi sama
han han widi kembar tapi beda han han dan widi kembar tapi samahan han widi kembar tapi beda han han dan widi kembar tapi sama
han han widi kembar tapi beda han han dan widi kembar tapi sama
IrlanMalik
 
太阳城娱乐-太阳城娱乐推荐-太阳城娱乐官方网站| 立即访问【ac123.net】
太阳城娱乐-太阳城娱乐推荐-太阳城娱乐官方网站| 立即访问【ac123.net】太阳城娱乐-太阳城娱乐推荐-太阳城娱乐官方网站| 立即访问【ac123.net】
太阳城娱乐-太阳城娱乐推荐-太阳城娱乐官方网站| 立即访问【ac123.net】
foismail170
 
Full Sail_Morales_Michael_SMM_2024-05.pptx
Full Sail_Morales_Michael_SMM_2024-05.pptxFull Sail_Morales_Michael_SMM_2024-05.pptx
Full Sail_Morales_Michael_SMM_2024-05.pptx
mmorales2173
 

Recently uploaded (20)

Brand Identity For A Sportscaster Project and Portfolio I
Brand Identity For A Sportscaster Project and Portfolio IBrand Identity For A Sportscaster Project and Portfolio I
Brand Identity For A Sportscaster Project and Portfolio I
 
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaaInteractive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
Interactive Dictionary AIDS-B.pptx aaaaaaaaaaaaaaaaaaaaaaaaaa
 
Exploring Career Paths in Cybersecurity for Technical Communicators
Exploring Career Paths in Cybersecurity for Technical CommunicatorsExploring Career Paths in Cybersecurity for Technical Communicators
Exploring Career Paths in Cybersecurity for Technical Communicators
 
Luke Royak's Personal Brand Exploration!
Luke Royak's Personal Brand Exploration!Luke Royak's Personal Brand Exploration!
Luke Royak's Personal Brand Exploration!
 
Transferable Skills - Your Roadmap - Part 1 and 2 - Dirk Spencer Senior Recru...
Transferable Skills - Your Roadmap - Part 1 and 2 - Dirk Spencer Senior Recru...Transferable Skills - Your Roadmap - Part 1 and 2 - Dirk Spencer Senior Recru...
Transferable Skills - Your Roadmap - Part 1 and 2 - Dirk Spencer Senior Recru...
 
Heidi Livengood Resume Senior Technical Recruiter / HR Generalist
Heidi Livengood Resume Senior Technical Recruiter / HR GeneralistHeidi Livengood Resume Senior Technical Recruiter / HR Generalist
Heidi Livengood Resume Senior Technical Recruiter / HR Generalist
 
原版制作(RMIT毕业证书)墨尔本皇家理工大学毕业证在读证明一模一样
原版制作(RMIT毕业证书)墨尔本皇家理工大学毕业证在读证明一模一样原版制作(RMIT毕业证书)墨尔本皇家理工大学毕业证在读证明一模一样
原版制作(RMIT毕业证书)墨尔本皇家理工大学毕业证在读证明一模一样
 
How Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
How Mentoring Elevates Your PM Career | PMI Silver Spring ChapterHow Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
How Mentoring Elevates Your PM Career | PMI Silver Spring Chapter
 
Personal Brand exploration KE.pdf for assignment
Personal Brand exploration KE.pdf for assignmentPersonal Brand exploration KE.pdf for assignment
Personal Brand exploration KE.pdf for assignment
 
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdfDOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
DOC-20240602-WA0001..pdf DOC-20240602-WA0001..pdf
 
How to Master LinkedIn for Career and Business
How to Master LinkedIn for Career and BusinessHow to Master LinkedIn for Career and Business
How to Master LinkedIn for Career and Business
 
皇冠体育- 皇冠体育官方网站- CROWN SPORTS| 立即访问【ac123.net】
皇冠体育- 皇冠体育官方网站- CROWN SPORTS| 立即访问【ac123.net】皇冠体育- 皇冠体育官方网站- CROWN SPORTS| 立即访问【ac123.net】
皇冠体育- 皇冠体育官方网站- CROWN SPORTS| 立即访问【ac123.net】
 
How to create an effective K-POC tutorial
How to create an effective K-POC tutorialHow to create an effective K-POC tutorial
How to create an effective K-POC tutorial
 
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdfRECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
RECOGNITION AWARD 13 - TO ALESSANDRO MARTINS.pdf
 
135. Reviewer Certificate in Journal of Engineering
135. Reviewer Certificate in Journal of Engineering135. Reviewer Certificate in Journal of Engineering
135. Reviewer Certificate in Journal of Engineering
 
New Explore Careers and College Majors 2024.pdf
New Explore Careers and College Majors 2024.pdfNew Explore Careers and College Majors 2024.pdf
New Explore Careers and College Majors 2024.pdf
 
Chapters 3 Contracts.pptx Chapters 3 Contracts.pptx
Chapters 3  Contracts.pptx Chapters 3  Contracts.pptxChapters 3  Contracts.pptx Chapters 3  Contracts.pptx
Chapters 3 Contracts.pptx Chapters 3 Contracts.pptx
 
han han widi kembar tapi beda han han dan widi kembar tapi sama
han han widi kembar tapi beda han han dan widi kembar tapi samahan han widi kembar tapi beda han han dan widi kembar tapi sama
han han widi kembar tapi beda han han dan widi kembar tapi sama
 
太阳城娱乐-太阳城娱乐推荐-太阳城娱乐官方网站| 立即访问【ac123.net】
太阳城娱乐-太阳城娱乐推荐-太阳城娱乐官方网站| 立即访问【ac123.net】太阳城娱乐-太阳城娱乐推荐-太阳城娱乐官方网站| 立即访问【ac123.net】
太阳城娱乐-太阳城娱乐推荐-太阳城娱乐官方网站| 立即访问【ac123.net】
 
Full Sail_Morales_Michael_SMM_2024-05.pptx
Full Sail_Morales_Michael_SMM_2024-05.pptxFull Sail_Morales_Michael_SMM_2024-05.pptx
Full Sail_Morales_Michael_SMM_2024-05.pptx
 

Db lecture 1

  • 1. Institute of SouthernPunjab, Multan Mr. Saif ur Rehman Khan BS (Computer Science) MS (Data Science, and Computer Science) Honors: Certified Android Developer, Research Assistant E-Mail: saifurrehman.khan@outlook.com
  • 3. Course- Objectives  Introduce basic database concepts.  Data Storage & retrieval techniques.  Database Design.  Different data models. 3
  • 4. Course Primarily- Objectives  Relational data model.  Database Management System (DBMS) concepts. 4
  • 5. Chapter 1 - Objectives  Some common uses of database systems.  Characteristics of file-based systems.  Problems with file-based approach.  Meaning of the term database.  Meaning of the term Database Management System (DBMS). 5
  • 6. Chapter 1 - Objectives  Typical functions of a DBMS.  Major components of the DBMS environment.  History of the development of DBMS.  Advantages and disadvantages of DBMS. 6
  • 7. Examples of Database Applications  Purchases from the supermarket  Purchases using your credit card  Booking a holiday at the travel agents  Using the local library  Taking out insurance  Renting a video  Using the Internet  Studying at university 7
  • 8. History:  Computers initially used for computational / engineering process.  After some time it has been thought that why should not used computer for commercial application. So in this way some languages were being used for such purpose like COBOL language.  Commercial application introduced File Processing System. 8
  • 9. File-Based Systems  Collection of application programs that perform services for the end users (e.g. reports).  Each program defines and manages its own data. 9
  • 10. File-Based Systems  Each system maintain data and processing its own.  Each system has own data and program/application. Each system store there own data separately and process independently.  Each system have own program for the purpose of processing (Read / Store / Minor Calculation / output on the screen).  In each system program and data are interdependence because program and data are depended on one another. 10
  • 12. Limitations of File-Based Approach  Program-Data Dependence  All programs maintain metadata for each file they use  Duplication of Data  Different systems/programs have separate copies of the same data  Limited Data Sharing  No centralized control of data  Lengthy Development Times  Programmers must design their own file formats  Excessive Program Maintenance  80% of information systems budget 12
  • 13. Limitations of File-Based Approach  Incompatible file formats  Programs are written in different languages, and so cannot easily access each other’s files.  Fixed Queries of application programs  Programs are written to satisfy particular functions.  Any new requirement needs a new program. 13
  • 14. Problems with Data Dependency  Each application programmer must maintain his/her own data  Each application program needs to include code for the meta data of each file  Each application program must have its own processing routines for reading, inserting, updating, and deleting data  Lack of coordination and central control  Non-standard file formats 14
  • 15. 15
  • 16. Problems with Data Dependency  If data is being changed then the program must be changed and vice versa For example if a library system has some attributes about book like.  Book_id  Book_name  Book_title  Book_author And after some time we add an other attribute like book_edition. So you need to change data but on other hand you have to change the program as well because program is dependent on data and vice versa It means that if you change the data in library system you will have to change Examination and Registration systems. 16
  • 17. Figure 1-3 Old file processing systems at Pine Valley Furniture Company Duplicate Data 17
  • 18. Problems with Data Redundancy  Waste of space to have duplicate data  Causes more maintenance issues The biggest problem:  Data changes in one file could cause inconsistencies  Compromises in data integrity 18
  • 20. No data sharing concept and inconsistency  Attribute Address appears in two systems, Examination and Registration. (Duplication)  It creates inconsistency  for example if a student changes his address in registration system and not updated examination  Address of student is different for registration information communication and examination information communication. 20
  • 22. Definitions  Database:  A database is a shared collection of logically related data, which is stored to meet the requirement of different users of an organization.  Data: Raw facts about any thing.  stored representations of meaningful objects and events  Structured: numbers, text, dates  Unstructured: images, video, documents 22
  • 23. Definition1  Logically related data: for example a man is working in a company and we want to get facts/data about such worker. We can gather many data like  Necessary Data  Name  FName  Address  So many….  Unnecessary Data  Size of shoe  Hair color  Height  Weight  So many…. 23
  • 24. Definition1  Shared Collection: There are some data that is common for different systems. Such data must not be duplicated and that should be shared 25
  • 25. Definition 2:  A database is a self describing collection of integrated records.  Self describing:  In database, there are not only data stored but also structure/definition/checks of that data. (In DBMS it is called Schema/meta data. We will see later in more detail)  Meta data is the part of database 26
  • 26. Definition 2:  Integrated record:  Records are linked to one another  When you see a record, to understand full meaning of that record you will have to consider another record.  It means that for understanding of a record you need another record which is linked with it. 27
  • 27. Definitions  Information: data processed to increase knowledge of the person using the data.  The processed data is called information (adding some knowledge).  Process means to add something to data.  To name/ label data is also a process.  Process can also add some knowledge, some information to the data. 28
  • 28. Graphical displays turn data into useful information that managers can use for decision making and interpretation Figure 1-1b Summarized data 30
  • 29. Descriptions of the properties or characteristics of the data, including data types, field sizes, allowable values, and data context 31
  • 30. The DATABASE Approach  Data sharing (common data is being stored at one place rather than storing the same on separate terminals)  Data independence: Both data and program are now independent, if you change data in one system, only that system will require the change.  Controlled Redundancy (Duplication)  Better Data Integrity  Data consistency  Better data security 32
  • 31.  Control of data redundancy  Data & resource sharing eliminates or at least minimize duplication  Better concurrency control  Multiple users access the data at the same time e.g. ATM  Better Backup and Recovery procedure The DATABASE Approach 33
  • 33. Database Management System DBMS manages data resources like an operating system manages hardware resources  A software system that is used to create, maintain, and provide controlled access to user databases Order Filing System Invoicing System Payroll System DBMS Central database Contains employee, order, inventory, pricing, and customer data 35
  • 34. Database Management System  (Database) application program: a computer program that interacts with database by issuing an appropriate request (SQL statement) to the DBMS. 36
  • 35. Database Approach: Parts of DB  Data Retrieval  Data Manipulation Language (DML).  Transaction Processing (TP)  Data definition language (DDL).  Data Control Language (DCL). 37
  • 36. Views  Allows each user to have his or her own view of the database.  A view is essentially some subset of the database. 38
  • 37. Views - Benefits  Reduce complexity  Provide a level of security  Provide a mechanism to customize the appearance of the database  Present a consistent, unchanging picture of the structure of the database, even if the underlying database is changed 39
  • 38. Components of DBMS Environment 40
  • 39. Components of DBMS Environment  Hardware  Can range from a PC to a network of computers.  Software  DBMS, operating system, network software (if necessary) and also the application programs.  Data  Used by the organization and a description of this data called the schema. 41
  • 40. Components of DBMS Environment  Procedures  Instructions and rules that should be applied to the design and use of the database and DBMS.  People 42
  • 41. Roles in the Database Environment  Data Administrator (DA)  Database Administrator (DBA)  Database Designers (Logical and Physical)  Application Programmers  End Users (naive and sophisticated) 43
  • 42. History of Database Systems  First-generation  Hierarchical and Network  Second generation  Relational  Third generation  Object-Relational  Object-Oriented 44
  • 43. Advantages of DBMSs  Control of data redundancy  Data consistency  More information from the same amount of data  Sharing of data  Improved data integrity  Improved security  Enforcement of standards  Economy of scale 45
  • 44. Advantages of DBMS  Balance conflicting requirements  Improved data accessibility and responsiveness  Increased productivity  Improved maintenance through data independence  Increased concurrency  Improved backup and recovery services 46
  • 45. Disadvantages of DBMSs  Complexity  Size  Cost of DBMS  Additional hardware costs  Cost of conversion  Performance  Higher impact of a failure 47
  • 46. Summary of Lecture  Some common uses of database systems.  Characteristics of file-based systems.  Problems with file-based approach.  Meaning of the term database.  Meaning of the term Database Management System (DBMS). 48
  • 47. Summary of Lecture  Typical functions of a DBMS.  Major components of the DBMS environment.  History of the development of DBMS.  Advantages and disadvantages of DBMS. 49

Editor's Notes

  1. Commercial application means no maximum calculation / computation involve. Only data processing (Read/store/minor calculation) and then get output either on Monitor or paper.
  2. Metadata summarizes basic information about data, which can make finding and working with particular instances of data easier. For example, author, date created and date modified and file size are examples of very basic document metadata.  Having the ability to filter through that metadata makes it much easier for someone to locate a specific document