SlideShare a Scribd company logo
Database Management System
Lecture 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)
• Typical functions of a DBMS.
• Major components of the DBMS environment.
• Personnel involved in the DBMS environment.
• History of the development of DBMS
• Advantages and disadvantages of DBMS
About Data
• The axiom "better data means better
decisions" is more true today than ever.
• No matter what business you're in, the
success of your organization depends on
accurate and timely information
First Thing First
• What is data?
• Why: you need data?
• Where: is data reside?
• Who: data belongs to?
• How: is it a worthwhile data?
Information Hierarchy
• Data: The raw Material of Information
• Information: Data organized and presented in
a particular manner.
• Knowledge: Justified True belief. Information
that can be acted upon.
• Wisdom: Integrated knowledge. High level
understanding
Some examples
• Purchases from a supermarket
• Bar code reader to scan each purchase.
• Bar code reader is linked to an application program
that uses the bar code to find out the price of the
item from a product database.
• This program reduces the number of such items in
stock and displays the price on the cash register.
• If the reorder level falls below a specified threshold,
the database system may automatically place an
order to obtain more stocks of that item.
Credit Card Example
• Purchases using your credit card
• Assistant normally checks you have sufficient credit left to
make the purchase. This can be done on the telephone or
may be done automatically by a card reader linked to a
computer system.
• There is a database somewhere that contains information
about the purchases you have made on your credit card.
• To check your credit there is a database application
program that uses your credit card number to check that
the price of the goods you wish to buy together with the
sum of the purchases you have already made this billing
period is within your credit limit.
Credit Card Example (conti..)
• After confirmation of the purchase the details of
the purchase are added to this database.
• The application program also accesses the
database to check that the credit card is not on a
list of stolen credit cards before authorizing the
purchase.
• There are other application programs to send
out monthly statements to each credit card
holder and to credit accounts when payment is
received
Traditional File-Based Systems
• The file-based system is the predecessor of the
database system.
• This approach is mostly obsolete but:
• understanding the problems inherent in file
based systems may prevent us from repeating
these problems in our database systems,
• understanding how the file system works is
extremely useful when converting a file-based
system to a database system.
File-Based Approach
• DEFN: The File-based system is a collection of
application programs that perform services for the
end-users such as the production of reports. Each
program defines and manages its own data.
• These were an early attempt to computerize the
manual filing system that most of us are familiar with.
• Really only works well when the number of items to be
stored is small.
• It works adequately when there are large numbers and
we have only to store and retrieve them
Terminology used in file-based
systems
• A file is simply a collection of records, which
contain logically related data.
• Each record contains a logically connected set
of one or more fields,
• where each field represents some
characteristics of the real-world object that is
being modeled.
When does the manual filing system
break down?
• The manual filing system breaks down when
we have to cross-reference or process
information in the files.
• Example: A typical real estate agent’s office
might have a separate file for each property
for sale or rent, each potential buyer and
renter, and each member of staff.
Real Estate Example ctd…
• How easy would it be to answer these questions using
this set up?
• What flats do you have for rent within three kilometres
of the city centre?
• What is the average rent for a two-bedroom flat?
• What is the total annual salary bill for staff?
• How does last month’s turnover compare with the
projected figure for this month?
• What is the expected monthly turnover for next
financial year?
University Management System
• Typically, a university might have different
departments:
• Admission Department
• Entry test, student enrolment, fee collection,
course registration etc.
• Examination Department
• Exams announcements, student results etc
• Employees Management Department.
• Course allocation, salaries etc.
University Management System ctd…
• Which students taking the course of IDS which
is allocated to ‘Uzair Muhammad’?
• How many students passed the prerequisite
subject OOP taking course IDS.
• Which students eligible for scholarship
according to University criteria?
Data Processing Staff (DP)
• The file-based system was developed in
response to the needs of industry for more
efficient data access. A decentralized
approach was taken, where each
department, with the assistance of Data
Processing (DP) staff, stored and controlled
its own data.
• We will illustrate this using an example
Example Real Estate ctd..
• The Sales Department is
responsible for selling and
renting property.
• The form that landlord has
to fill out before property
is marketed for rent is
shown;
• This gives details of rental
property as well as owner
(landlord) details.
• Sales Department
also handles
enquiries from
clients
(renters)Client
Details form.
• With assistance of Data
Processing (DP)
Department, Sales
Department creates an
information system to
handle renting the
property
• This consists of three
files containing
property, owner and
client details
• Contracts Department is
responsible for rental
agreements.
• Wheneveraclientagreesto
rentapropertyaformisfille
doutbyoneoftheSalesstaff
whichispassedtotheContr
actsDepartmentwhichallo
catesaleaenumberandco
mpletesthepaymentandre
ntalperioddetails.

More Related Content

What's hot

Uses of dbms
Uses of dbmsUses of dbms
Uses of dbmsMISY
 
Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)welcometofacebook
 
Database management system
Database management systemDatabase management system
Database management system
Faizan Shabbir
 
Introduction to database development
Introduction to database developmentIntroduction to database development
Introduction to database development
AKASH GHANATE
 
Modern database management system chapter 1
Modern database management system chapter 1Modern database management system chapter 1
Modern database management system chapter 1
AyeshaShoukat5
 
Role of Database Management in Information Systems
Role of Database Management in Information SystemsRole of Database Management in Information Systems
Role of Database Management in Information SystemswaQas ilYas
 
Database planning
Database planningDatabase planning
Database planning
Umair Shakir
 
Mis chapter 7 database systems
Mis chapter 7 database systemsMis chapter 7 database systems
Mis chapter 7 database systems
Filmon Habtemichael Tesfai
 
Pmit 6102-14-lec1-intro
Pmit 6102-14-lec1-introPmit 6102-14-lec1-intro
Pmit 6102-14-lec1-introJesmin Rahaman
 
DBMS Basics
DBMS BasicsDBMS Basics
DBMS Basics
Jaipal Dhobale
 
Mydbms
MydbmsMydbms
Introduction to Databases by Dr. Kamal Gulati
Introduction to Databases by Dr. Kamal GulatiIntroduction to Databases by Dr. Kamal Gulati
Lecture 1&2(rdbms-ii)
Lecture 1&2(rdbms-ii)Lecture 1&2(rdbms-ii)
Lecture 1&2(rdbms-ii)
Ravinder Kamboj
 
Database Systems
Database SystemsDatabase Systems
Database Systems
Usman Tariq
 
Lesson - 02 Network Design and Management
Lesson - 02 Network Design and ManagementLesson - 02 Network Design and Management
Lesson - 02 Network Design and ManagementAngel G Diaz
 
Data base management
Data base management Data base management
Data base management
MiXvideos
 
data base manage ment
data base manage mentdata base manage ment
data base manage ment
kaleemullah125
 

What's hot (20)

Uses of dbms
Uses of dbmsUses of dbms
Uses of dbms
 
Dbms9
Dbms9Dbms9
Dbms9
 
Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)
 
Database management system
Database management systemDatabase management system
Database management system
 
Introduction to database development
Introduction to database developmentIntroduction to database development
Introduction to database development
 
Database - Design & Implementation - 1
Database - Design & Implementation - 1Database - Design & Implementation - 1
Database - Design & Implementation - 1
 
Modern database management system chapter 1
Modern database management system chapter 1Modern database management system chapter 1
Modern database management system chapter 1
 
Role of Database Management in Information Systems
Role of Database Management in Information SystemsRole of Database Management in Information Systems
Role of Database Management in Information Systems
 
Database planning
Database planningDatabase planning
Database planning
 
Mis chapter 7 database systems
Mis chapter 7 database systemsMis chapter 7 database systems
Mis chapter 7 database systems
 
Pmit 6102-14-lec1-intro
Pmit 6102-14-lec1-introPmit 6102-14-lec1-intro
Pmit 6102-14-lec1-intro
 
DBMS Basics
DBMS BasicsDBMS Basics
DBMS Basics
 
Mydbms
MydbmsMydbms
Mydbms
 
Introduction to Databases by Dr. Kamal Gulati
Introduction to Databases by Dr. Kamal GulatiIntroduction to Databases by Dr. Kamal Gulati
Introduction to Databases by Dr. Kamal Gulati
 
Lecture 1&2(rdbms-ii)
Lecture 1&2(rdbms-ii)Lecture 1&2(rdbms-ii)
Lecture 1&2(rdbms-ii)
 
Database Systems
Database SystemsDatabase Systems
Database Systems
 
Lesson - 02 Network Design and Management
Lesson - 02 Network Design and ManagementLesson - 02 Network Design and Management
Lesson - 02 Network Design and Management
 
Data base management
Data base management Data base management
Data base management
 
Dbms
DbmsDbms
Dbms
 
data base manage ment
data base manage mentdata base manage ment
data base manage ment
 

Viewers also liked

Database Management system
Database Management systemDatabase Management system
Database Management system
Vijay Thorat
 
File system-and-database-chapter01-connoly
File system-and-database-chapter01-connolyFile system-and-database-chapter01-connoly
File system-and-database-chapter01-connolyTemma Tems
 
Database system environment ppt.
Database system environment ppt.Database system environment ppt.
Database system environment ppt.yhen06
 
Kotler Keller - Marketing Management 15th edition, Chapter 01
Kotler Keller - Marketing Management 15th edition, Chapter 01Kotler Keller - Marketing Management 15th edition, Chapter 01
Kotler Keller - Marketing Management 15th edition, Chapter 01
Korea Institute of Marketing Education
 
data resource management
 data resource management data resource management
data resource managementsoodsurbhi123
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
NILESH UCHCHASARE
 
Advantages of DBMS
Advantages of DBMSAdvantages of DBMS
Advantages of DBMS
harshith singh
 
Chapter 2 database environment
Chapter 2 database environmentChapter 2 database environment
Chapter 2 database environment>. <
 
File Processing System
File Processing SystemFile Processing System
File Processing System
DMMMSU-SLUC
 
Disadvantages of file management system (file processing systems)
Disadvantages of file management system(file processing systems)Disadvantages of file management system(file processing systems)
Disadvantages of file management system (file processing systems)
raj upadhyay
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to databaseemailharmeet
 
Advantages of database management system
Advantages of database management system Advantages of database management system
Advantages of database management system
Nafeesa Naeem
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1ahfiki
 
Dbms ppt
Dbms pptDbms ppt
Dbms ppt
Chinnu Shimna
 
DbMs
DbMsDbMs
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
Prerana Bhattarai
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
dangwalrajendra888
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentationsameerraaj
 

Viewers also liked (20)

Database Management system
Database Management systemDatabase Management system
Database Management system
 
File system-and-database-chapter01-connoly
File system-and-database-chapter01-connolyFile system-and-database-chapter01-connoly
File system-and-database-chapter01-connoly
 
Database system environment ppt.
Database system environment ppt.Database system environment ppt.
Database system environment ppt.
 
Kotler Keller - Marketing Management 15th edition, Chapter 01
Kotler Keller - Marketing Management 15th edition, Chapter 01Kotler Keller - Marketing Management 15th edition, Chapter 01
Kotler Keller - Marketing Management 15th edition, Chapter 01
 
data resource management
 data resource management data resource management
data resource management
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Advantages of DBMS
Advantages of DBMSAdvantages of DBMS
Advantages of DBMS
 
Chapter 2 database environment
Chapter 2 database environmentChapter 2 database environment
Chapter 2 database environment
 
File Processing System
File Processing SystemFile Processing System
File Processing System
 
Disadvantages of file management system (file processing systems)
Disadvantages of file management system(file processing systems)Disadvantages of file management system(file processing systems)
Disadvantages of file management system (file processing systems)
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
Advantages of database management system
Advantages of database management system Advantages of database management system
Advantages of database management system
 
DBMS
DBMSDBMS
DBMS
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
 
Dbms ppt
Dbms pptDbms ppt
Dbms ppt
 
DbMs
DbMsDbMs
DbMs
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
 
Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
Kotler mm14 ch01_dppt
Kotler mm14 ch01_dpptKotler mm14 ch01_dppt
Kotler mm14 ch01_dppt
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
 

Similar to Database management system

Information Management
Information ManagementInformation Management
Information Management
EllenGracePorras
 
Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
M.Zalmai Rahmani
 
Data mining
Data miningData mining
Data mining
jadhav_priti
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
Dilawar Khan
 
Cel 2 Data Management (Form 3) dated 4.8.14
Cel 2   Data Management (Form 3) dated 4.8.14Cel 2   Data Management (Form 3) dated 4.8.14
Cel 2 Data Management (Form 3) dated 4.8.14
John James Yap
 
AIS PPt.pptx
AIS PPt.pptxAIS PPt.pptx
AIS PPt.pptx
dereje33
 
LIBRARY Automation
LIBRARY AutomationLIBRARY Automation
LIBRARY Automation
JehnMarieSimon1
 
LIBRARY Automation
LIBRARY AutomationLIBRARY Automation
LIBRARY Automation
Jehn Marie A. Simon
 
E-Business and E- Business Type and Transaction Process System
E-Business and E- Business Type and Transaction Process SystemE-Business and E- Business Type and Transaction Process System
E-Business and E- Business Type and Transaction Process System
Rashed Barakzai
 
DBMS Lecture 1.ppt
DBMS Lecture 1.pptDBMS Lecture 1.ppt
DBMS Lecture 1.ppt
MohsinBajwa18
 
Introduction to Big Data Analytics
Introduction to Big Data AnalyticsIntroduction to Big Data Analytics
Introduction to Big Data Analytics
Utkarsh Sharma
 
Data Mining & Data Warehousing
Data Mining & Data WarehousingData Mining & Data Warehousing
Data Mining & Data Warehousing
AAKANKSHA JAIN
 
Setting_Product_Strategy.pptx
Setting_Product_Strategy.pptxSetting_Product_Strategy.pptx
Setting_Product_Strategy.pptx
Ashish360593
 
Business Intelligence Data Warehouse System
Business Intelligence Data Warehouse SystemBusiness Intelligence Data Warehouse System
Business Intelligence Data Warehouse System
Kiran kumar
 
PPT_Digital_Transformation.pptx
PPT_Digital_Transformation.pptxPPT_Digital_Transformation.pptx
PPT_Digital_Transformation.pptx
Ashish360593
 
dbms ppt.pptx database management system
dbms ppt.pptx database management systemdbms ppt.pptx database management system
dbms ppt.pptx database management system
deeptipal230
 
Trends in it
Trends in itTrends in it
Trends in it
Mehak Vaswani
 
Cognos datawarehouse
Cognos datawarehouseCognos datawarehouse
Cognos datawarehouse
ssuser7fc7eb
 
Handling and Processing Big Data
Handling and Processing Big DataHandling and Processing Big Data
Handling and Processing Big Data
Umair Shafique
 

Similar to Database management system (20)

Information Management
Information ManagementInformation Management
Information Management
 
Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
 
Data mining
Data miningData mining
Data mining
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
 
Cel 2 Data Management (Form 3) dated 4.8.14
Cel 2   Data Management (Form 3) dated 4.8.14Cel 2   Data Management (Form 3) dated 4.8.14
Cel 2 Data Management (Form 3) dated 4.8.14
 
Case management systems
Case management systemsCase management systems
Case management systems
 
AIS PPt.pptx
AIS PPt.pptxAIS PPt.pptx
AIS PPt.pptx
 
LIBRARY Automation
LIBRARY AutomationLIBRARY Automation
LIBRARY Automation
 
LIBRARY Automation
LIBRARY AutomationLIBRARY Automation
LIBRARY Automation
 
E-Business and E- Business Type and Transaction Process System
E-Business and E- Business Type and Transaction Process SystemE-Business and E- Business Type and Transaction Process System
E-Business and E- Business Type and Transaction Process System
 
DBMS Lecture 1.ppt
DBMS Lecture 1.pptDBMS Lecture 1.ppt
DBMS Lecture 1.ppt
 
Introduction to Big Data Analytics
Introduction to Big Data AnalyticsIntroduction to Big Data Analytics
Introduction to Big Data Analytics
 
Data Mining & Data Warehousing
Data Mining & Data WarehousingData Mining & Data Warehousing
Data Mining & Data Warehousing
 
Setting_Product_Strategy.pptx
Setting_Product_Strategy.pptxSetting_Product_Strategy.pptx
Setting_Product_Strategy.pptx
 
Business Intelligence Data Warehouse System
Business Intelligence Data Warehouse SystemBusiness Intelligence Data Warehouse System
Business Intelligence Data Warehouse System
 
PPT_Digital_Transformation.pptx
PPT_Digital_Transformation.pptxPPT_Digital_Transformation.pptx
PPT_Digital_Transformation.pptx
 
dbms ppt.pptx database management system
dbms ppt.pptx database management systemdbms ppt.pptx database management system
dbms ppt.pptx database management system
 
Trends in it
Trends in itTrends in it
Trends in it
 
Cognos datawarehouse
Cognos datawarehouseCognos datawarehouse
Cognos datawarehouse
 
Handling and Processing Big Data
Handling and Processing Big DataHandling and Processing Big Data
Handling and Processing Big Data
 

More from Faizan Shabbir

Components of-crankshaft
Components of-crankshaftComponents of-crankshaft
Components of-crankshaft
Faizan Shabbir
 
4th edition mechanics of materials by beer johnston (solution manual)
4th edition mechanics of materials by beer johnston (solution manual)4th edition mechanics of materials by beer johnston (solution manual)
4th edition mechanics of materials by beer johnston (solution manual)
Faizan Shabbir
 
Water level indicator
Water level indicatorWater level indicator
Water level indicator
Faizan Shabbir
 
Hdpe pipe industry
Hdpe pipe industryHdpe pipe industry
Hdpe pipe industry
Faizan Shabbir
 
Logic gates pin_configuration
Logic gates pin_configurationLogic gates pin_configuration
Logic gates pin_configuration
Faizan Shabbir
 
Gas turbine
Gas turbineGas turbine
Gas turbine
Faizan Shabbir
 
Stirling engine
Stirling engineStirling engine
Stirling engine
Faizan Shabbir
 
Determining the mechanical power of turbine
Determining the mechanical power of turbineDetermining the mechanical power of turbine
Determining the mechanical power of turbine
Faizan Shabbir
 
Efficiency of change of state of gases apparatus
Efficiency of change of state of gases apparatusEfficiency of change of state of gases apparatus
Efficiency of change of state of gases apparatus
Faizan Shabbir
 
Homogeneous charge compression ignition hcci Engines
Homogeneous charge compression ignition hcci EnginesHomogeneous charge compression ignition hcci Engines
Homogeneous charge compression ignition hcci Engines
Faizan Shabbir
 
Head losses
Head lossesHead losses
Head losses
Faizan Shabbir
 
Writing correspondence
Writing correspondenceWriting correspondence
Writing correspondence
Faizan Shabbir
 
Womens political participation
Womens political participationWomens political participation
Womens political participation
Faizan Shabbir
 
The collapse-of-the-soviet-union
The collapse-of-the-soviet-unionThe collapse-of-the-soviet-union
The collapse-of-the-soviet-union
Faizan Shabbir
 
Technical pres
Technical presTechnical pres
Technical pres
Faizan Shabbir
 
Skills
SkillsSkills
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in space
Faizan Shabbir
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in space
Faizan Shabbir
 
Economy and energy security for pakistan
Economy and energy security for pakistanEconomy and energy security for pakistan
Economy and energy security for pakistan
Faizan Shabbir
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in spaceFaizan Shabbir
 

More from Faizan Shabbir (20)

Components of-crankshaft
Components of-crankshaftComponents of-crankshaft
Components of-crankshaft
 
4th edition mechanics of materials by beer johnston (solution manual)
4th edition mechanics of materials by beer johnston (solution manual)4th edition mechanics of materials by beer johnston (solution manual)
4th edition mechanics of materials by beer johnston (solution manual)
 
Water level indicator
Water level indicatorWater level indicator
Water level indicator
 
Hdpe pipe industry
Hdpe pipe industryHdpe pipe industry
Hdpe pipe industry
 
Logic gates pin_configuration
Logic gates pin_configurationLogic gates pin_configuration
Logic gates pin_configuration
 
Gas turbine
Gas turbineGas turbine
Gas turbine
 
Stirling engine
Stirling engineStirling engine
Stirling engine
 
Determining the mechanical power of turbine
Determining the mechanical power of turbineDetermining the mechanical power of turbine
Determining the mechanical power of turbine
 
Efficiency of change of state of gases apparatus
Efficiency of change of state of gases apparatusEfficiency of change of state of gases apparatus
Efficiency of change of state of gases apparatus
 
Homogeneous charge compression ignition hcci Engines
Homogeneous charge compression ignition hcci EnginesHomogeneous charge compression ignition hcci Engines
Homogeneous charge compression ignition hcci Engines
 
Head losses
Head lossesHead losses
Head losses
 
Writing correspondence
Writing correspondenceWriting correspondence
Writing correspondence
 
Womens political participation
Womens political participationWomens political participation
Womens political participation
 
The collapse-of-the-soviet-union
The collapse-of-the-soviet-unionThe collapse-of-the-soviet-union
The collapse-of-the-soviet-union
 
Technical pres
Technical presTechnical pres
Technical pres
 
Skills
SkillsSkills
Skills
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in space
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in space
 
Economy and energy security for pakistan
Economy and energy security for pakistanEconomy and energy security for pakistan
Economy and energy security for pakistan
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in space
 

Database management system

  • 2. 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) • Typical functions of a DBMS. • Major components of the DBMS environment. • Personnel involved in the DBMS environment. • History of the development of DBMS • Advantages and disadvantages of DBMS
  • 3. About Data • The axiom "better data means better decisions" is more true today than ever. • No matter what business you're in, the success of your organization depends on accurate and timely information
  • 4. First Thing First • What is data? • Why: you need data? • Where: is data reside? • Who: data belongs to? • How: is it a worthwhile data?
  • 5. Information Hierarchy • Data: The raw Material of Information • Information: Data organized and presented in a particular manner. • Knowledge: Justified True belief. Information that can be acted upon. • Wisdom: Integrated knowledge. High level understanding
  • 6. Some examples • Purchases from a supermarket • Bar code reader to scan each purchase. • Bar code reader is linked to an application program that uses the bar code to find out the price of the item from a product database. • This program reduces the number of such items in stock and displays the price on the cash register. • If the reorder level falls below a specified threshold, the database system may automatically place an order to obtain more stocks of that item.
  • 7. Credit Card Example • Purchases using your credit card • Assistant normally checks you have sufficient credit left to make the purchase. This can be done on the telephone or may be done automatically by a card reader linked to a computer system. • There is a database somewhere that contains information about the purchases you have made on your credit card. • To check your credit there is a database application program that uses your credit card number to check that the price of the goods you wish to buy together with the sum of the purchases you have already made this billing period is within your credit limit.
  • 8. Credit Card Example (conti..) • After confirmation of the purchase the details of the purchase are added to this database. • The application program also accesses the database to check that the credit card is not on a list of stolen credit cards before authorizing the purchase. • There are other application programs to send out monthly statements to each credit card holder and to credit accounts when payment is received
  • 9. Traditional File-Based Systems • The file-based system is the predecessor of the database system. • This approach is mostly obsolete but: • understanding the problems inherent in file based systems may prevent us from repeating these problems in our database systems, • understanding how the file system works is extremely useful when converting a file-based system to a database system.
  • 10. File-Based Approach • DEFN: The File-based system is a collection of application programs that perform services for the end-users such as the production of reports. Each program defines and manages its own data. • These were an early attempt to computerize the manual filing system that most of us are familiar with. • Really only works well when the number of items to be stored is small. • It works adequately when there are large numbers and we have only to store and retrieve them
  • 11. Terminology used in file-based systems • A file is simply a collection of records, which contain logically related data. • Each record contains a logically connected set of one or more fields, • where each field represents some characteristics of the real-world object that is being modeled.
  • 12. When does the manual filing system break down? • The manual filing system breaks down when we have to cross-reference or process information in the files. • Example: A typical real estate agent’s office might have a separate file for each property for sale or rent, each potential buyer and renter, and each member of staff.
  • 13. Real Estate Example ctd… • How easy would it be to answer these questions using this set up? • What flats do you have for rent within three kilometres of the city centre? • What is the average rent for a two-bedroom flat? • What is the total annual salary bill for staff? • How does last month’s turnover compare with the projected figure for this month? • What is the expected monthly turnover for next financial year?
  • 14. University Management System • Typically, a university might have different departments: • Admission Department • Entry test, student enrolment, fee collection, course registration etc. • Examination Department • Exams announcements, student results etc • Employees Management Department. • Course allocation, salaries etc.
  • 15. University Management System ctd… • Which students taking the course of IDS which is allocated to ‘Uzair Muhammad’? • How many students passed the prerequisite subject OOP taking course IDS. • Which students eligible for scholarship according to University criteria?
  • 16. Data Processing Staff (DP) • The file-based system was developed in response to the needs of industry for more efficient data access. A decentralized approach was taken, where each department, with the assistance of Data Processing (DP) staff, stored and controlled its own data. • We will illustrate this using an example
  • 17. Example Real Estate ctd.. • The Sales Department is responsible for selling and renting property. • The form that landlord has to fill out before property is marketed for rent is shown; • This gives details of rental property as well as owner (landlord) details.
  • 18. • Sales Department also handles enquiries from clients (renters)Client Details form.
  • 19. • With assistance of Data Processing (DP) Department, Sales Department creates an information system to handle renting the property • This consists of three files containing property, owner and client details
  • 20. • Contracts Department is responsible for rental agreements. • Wheneveraclientagreesto rentapropertyaformisfille doutbyoneoftheSalesstaff whichispassedtotheContr actsDepartmentwhichallo catesaleaenumberandco mpletesthepaymentandre ntalperioddetails.