SlideShare a Scribd company logo
1 of 52
CSC271 Database Systems
Lecture # 1
About Instructor
Sadaf Iqbal
Lecturer
Department of Electrical Engineering
COMSATS University Islamabad
sadafiqbal@comsats.edu.pk
Required Text Book
 Book Authors
Connolly, T. M., and Begg, C. E.
 Book Title
Database Systems
A Practical Approach to Design,
Implementation, and Management
 Book Edition and Publisher
4th Edition, Addison Wesley, 2005.
Reference Books
 Book Authors
Hoffer, Jeffrey A., and Prescott, Mary
B., and McFadden, Fred R.
 Book Title
Modern Database Management
 Book Edition and Publisher
7th Edition, Prentice Hall, 2005.
Reference Books
 Book Author
Kroenke, David M.
 Book Title
Database Processing
Fundamentals, Design and
Implementation
 Book Edition and Publisher
10th Edition, Prentice Hall, 2006.
Reference Books
 Book Author
Date, C. J.
 Book Title
An Introduction to Database Systems
 Book Edition and Publisher
8th Edition, Addison Wesley, 2003.
Course Objectives
 To be able to understand the
underlying concepts of database,
and database management system
(DBMS)
 To introduce students to the
concepts of relational data model
 Analysis and design of database
application or information system
Course Objectives..
 Experience with SQL
 Implementation of database using
SQL
 Learn to work with Microsoft SQL
Server 2008 environment
Course Contents at a Glance
 Introduction to Database Concepts
 Database Environment
 The Relational Model
 Relational Algebra
 SQL: Data Manipulation
 SQL: Data Definition
 Database Planning, Design, and
Administration
Course Contents at a Glance..
 Fact-Finding Techniques
 Entity-Relationship Model
 Enhanced E-R Model
 Normalization
 Advanced Normalization
 Conceptual, Logical, and Physical
Database Design
Course Contents at a Glance..
 Transaction Management
 Security
Marks Distribution
 Quizzes/Assignments 25%
 Sessional-I 10%
 Sessional-II 15%
 Final 50%
Introduction to Databases
Chapter 1
Chapter 1 - Objectives
 Some common uses of database systems
 Characteristics of file-based systems
 Problems with file-based approach
 Meaning of the term database (DB)
 Meaning of the term Database
Management System (DBMS)
Chapter 1 - Objectives
 Typical functions of a DBMS.
 Major components of the DBMS
environment.
 Personnel involved in the DBMS
environment.
 History of the development of DBMSs.
 Advantages and disadvantages of DBMSs.
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
File-Based Systems
 Early attempt to Computerize the manual
filing system
 Collection of application programs that
perform services for the end users (e.g.
reports).
 Each program defines and manages its
own data.
Manual Filing Systems
 Works well
while number of items to be stored is small
For only storage or retrieval functionality of
large number of items
File-Based Systems
 Consider DreamHome example for file-
based systems
Sales Department : responsible for selling
and renting of properties
Contract Department: responsible for
handling lease agreements
Sales Department
 PropertyForRent
(propertyNo, street, city, postcode, type, rooms, rent,
ownerNo)
 Client
(clientNo, fName, lName, telNo, preftype, maxRent)
 PrivateOwner
(ownerNo, fName, lName, address, telNo)
ownerNo fName lName address telNo
CO46 Joe Keogh … 01224-861212
CO87 Carol Farrel … 0141-357-7419
CO40 … … … …
CO93 … … … …
propertyNo street city postcode type rooms rent ownerNo
PA14 … Aberdeen … House 6 650 CO46
PL94 … London … Flat 4 400 CO87
PG4 … Glasgow … Flat 3 350 CO40
PG36 … Glasgow … Flat 3 375 CO93
PG21 … Glasgow … House 5 600 CO87
PG16 … Glasgow … Flat 4 450 CO93
PrivateOwner
PropertyForRent
clientNo fName lName telNo prefType maxRent
CR76 John Kay 0207-774-5632 Flat 425
CR56 Aline Stewart 0141-848-1825 Flat 350
CR74 Mike Ritchie 01475-392178 House 750
CR62 Mary Tregear 01224-196720 Flat 600
Client
Contract Department
 Lease
(leaseNo, propertyNo, clientNo, rent , paymentMethod,
deposit, paid, rentStart, rentFinish, duration)
 PropertyForRent
(propertyNo, street, city, postcode, type, rooms, rent)
 Client
(clientNo, fName, lName, telNo, preftype, maxRent)
Lease
leaseNo propertyNo clientNo rent --- rentStart rentFinish duration
10024 PA14 CR62 650 1-Jun-05 31-May-06 12
… … … … … … … …
propertyNo street city postcode type rooms rent
PA14 … Aberdeen … House 6 650
PL94 … London … Flat 4 400
PG4 … Glasgow … Flat 3 350
PG36 … Glasgow … Flat 3 375
PG21 … Glasgow … House 5 600
PG16 … Glasgow … Flat 4 450
PropertyForRent
clientNo fName lName telNo
CR76 John Kay 0207-774-5632
CR56 Aline Stewart 0141-848-1825
CR74 Mike Ritchie 01475-392178
CR62 Mary Tregear 01224-196720
Client
File-Based Processing
Limitations of File-Based
Approach
 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.
 For example, if we want to produce a list of all houses
that match the requirements of the clients.
 Duplication of data
 Decentralized approach taken by each department.
 Same data is held by different programs.
 Wasted space and potentially different values and/or
different formats for the same item.
Limitations of File-Based
Approach..
 Data dependence
 File structure is defined in the program code.
 Incompatible file formats
 Programs are written in different languages, and so cannot
easily access each other’s files.
 Fixed Queries/Proliferation of application
programs
 Programs are written to satisfy particular functions.
 Any new requirement needs a new program.
Database Approach
 Arose because:
 Definition of data was embedded in application programs,
rather than being stored separately and independently.
 No control over access and manipulation of data beyond
that imposed by application programs.
 Result:
 the database and Database Management System (DBMS).
Database
 Shared collection of logically related data,
and a description of this data, designed to
meet the information needs of an
organization.
 System catalog (metadata) provides
description of data to enable program-
data independence.
 Logically related data comprises entities,
attributes, and relationships of an
organization’s information.
Database Management
System (DBMS)
 A software system that enables users to
define, create, maintain, and control
access to the database.
 (Database) application program: a
computer program that interacts with
database by issuing an appropriate
request (SQL statement) to the DBMS.
Database Management
System (DBMS)..
Database Approach
 Data definition language (DDL).
 Permits specification of data types, structures and any data
constraints.
 All specifications are stored in the database.
 Data manipulation language (DML).
 General enquiry facility (query language) of the data.
Database Approach..
 Controlled access to database may include
 A security system
 Which prevents unauthorized users accessing the database
 An integrity system
 Which maintains the consistency of stored data
 A concurrency control system
 Which allows shared access of the database
 A recovery control system
 Which restores the database to a previous consistent state in case of
hardware or software failure
 A user-accessible catalog
 Which contains description of the data in the database
Views
 Allows each user to have his or her own
view of the database.
 A view is essentially some subset of the
database.
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
Summary
 Introduction to DB and DBMS
 File-based systems and their limitations
 Database approach
Components of DBMS
Environment
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.
Components of DBMS
Environment..
 Procedures
 Instructions and rules that should be applied to the
design and use of the database and DBMS.
 People
Roles in the Database
Environment
 Data Administrator (DA)
 Database planning
 Development and maintenance of standards, policies and procedures
 Database Administrator (DBA)
 Physical realization of the database
 Physical database design and implementation
 Security and integrity control
 Maintenance of the operational system
 Ensuring satisfactory performance of the applications for users
 Database Designers (Logical and Physical)
 Application Programmers
 End Users (naive and sophisticated)
History of Database
Systems
 Roots of the DBMS
Apollo moon-landing project, 1960s
NAA (North American Aviation), prime
contractor for the project
Developed a software GUAM (Generalized
Update Access Method), hierarchical
In mid – 1960s IBM joined NAA, result was
IMS(Information Management System)
History of Database
Systems..
 IDS ( Integrated Data Store)
By General Electric, network, mid-1960
 CODASYL ( Conference on Data Systems
Languages)
 DBTG (Data Base Task Group)
History of Database
Systems..
 DBTG proposal in 1971, components
The network schema: the logical
organization of the entire database as seen
by the DBA – which includes a definition of
the database name, the type of each record,
and the components of each record type.
The subschema: the part of the database as
seen by the user or application program;
A data management language to define the
data characteristics and the data structure,
and to manipulate the data.
History of Database
Systems..
 DBTG specified three languages
A schema Data Definition Language (DDL),
which enables the DBA to define the schema.
A subschema DDL, which allows the
application programs to define the parts of
the database they require.
A Data Manipulation Language (DML), to
manipulate the data.
History of Database
Systems..
 E. F. Codd, 1970
IBM Research Laboratory
Relational model
System R project by IBM’S San Jose
Research Laboratory California
Result of this project
 Development of SQL
 Commercial relational DBMS products e.g. DB2,
SQL/DS from IBM, Oracle from Oracle Corp.
DBMS Generations
 First-generation
 Hierarchical and Network
 Second generation
 Relational
 Third generation
 Object-Relational
 Object-Oriented
Advantages of DBMSs
 Control of data redundancy
 Data consistency
 More information from the same amount of
data
 Sharing of data
 Improved data integrity (constraints)
 Improved security (authentication, rights)
 Enforcement of standards (data formats,
naming conventions, documentation etc.)
Advantages of DBMSs..
 Economy of scale (economical cost)
 Balance conflicting requirements
 Improved data accessibility and
responsiveness (ad hoc queries)
 Increased productivity (developer)
 Improved maintenance through data
independence
 Increased concurrency
Advantages of DBMSs..
 Improved backup and recovery services
Disadvantages of DBMSs
 Complexity
 Size (disk space for DBMS)
 Cost of DBMS
 Additional hardware costs
 Cost of conversion
 Performance
 Higher impact of a failure
Summary
 Introduction to DB and DBMS
 File-based systems and their limitations
 Database approach
 Components of the DBMS environment
 Roles in the DB environment
 History of DBMS
 Advantages/Disadvantages of DBMSs

More Related Content

Similar to Lecture 1.pptx

Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
ahfiki
 

Similar to Lecture 1.pptx (20)

DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Unit01 dbms
Unit01 dbmsUnit01 dbms
Unit01 dbms
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
DbMs
DbMsDbMs
DbMs
 
Db lecture 1
Db lecture 1Db lecture 1
Db lecture 1
 
data base manage ment
data base manage mentdata base manage ment
data base manage ment
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
 
DB_Lec_1 and 2.pptx
DB_Lec_1 and 2.pptxDB_Lec_1 and 2.pptx
DB_Lec_1 and 2.pptx
 
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
 
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
 
Database Management System ( Dbms )
Database Management System ( Dbms )Database Management System ( Dbms )
Database Management System ( Dbms )
 
data base management system (DBMS)
data base management system (DBMS)data base management system (DBMS)
data base management system (DBMS)
 
DBMS
DBMSDBMS
DBMS
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
 
Database system Handbook.docx
Database system Handbook.docxDatabase system Handbook.docx
Database system Handbook.docx
 
En ch01
En ch01En ch01
En ch01
 
DBMS Part1.pptx
DBMS Part1.pptxDBMS Part1.pptx
DBMS Part1.pptx
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
DATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALADATA BASE  MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
DATA BASE MANAGEMENT SYSTEM BY SAIKIRAN PANJALA
 

Recently uploaded

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 

Recently uploaded (20)

Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 

Lecture 1.pptx

  • 2. About Instructor Sadaf Iqbal Lecturer Department of Electrical Engineering COMSATS University Islamabad sadafiqbal@comsats.edu.pk
  • 3. Required Text Book  Book Authors Connolly, T. M., and Begg, C. E.  Book Title Database Systems A Practical Approach to Design, Implementation, and Management  Book Edition and Publisher 4th Edition, Addison Wesley, 2005.
  • 4. Reference Books  Book Authors Hoffer, Jeffrey A., and Prescott, Mary B., and McFadden, Fred R.  Book Title Modern Database Management  Book Edition and Publisher 7th Edition, Prentice Hall, 2005.
  • 5. Reference Books  Book Author Kroenke, David M.  Book Title Database Processing Fundamentals, Design and Implementation  Book Edition and Publisher 10th Edition, Prentice Hall, 2006.
  • 6. Reference Books  Book Author Date, C. J.  Book Title An Introduction to Database Systems  Book Edition and Publisher 8th Edition, Addison Wesley, 2003.
  • 7. Course Objectives  To be able to understand the underlying concepts of database, and database management system (DBMS)  To introduce students to the concepts of relational data model  Analysis and design of database application or information system
  • 8. Course Objectives..  Experience with SQL  Implementation of database using SQL  Learn to work with Microsoft SQL Server 2008 environment
  • 9. Course Contents at a Glance  Introduction to Database Concepts  Database Environment  The Relational Model  Relational Algebra  SQL: Data Manipulation  SQL: Data Definition  Database Planning, Design, and Administration
  • 10. Course Contents at a Glance..  Fact-Finding Techniques  Entity-Relationship Model  Enhanced E-R Model  Normalization  Advanced Normalization  Conceptual, Logical, and Physical Database Design
  • 11. Course Contents at a Glance..  Transaction Management  Security
  • 12. Marks Distribution  Quizzes/Assignments 25%  Sessional-I 10%  Sessional-II 15%  Final 50%
  • 14. Chapter 1 - Objectives  Some common uses of database systems  Characteristics of file-based systems  Problems with file-based approach  Meaning of the term database (DB)  Meaning of the term Database Management System (DBMS)
  • 15. Chapter 1 - Objectives  Typical functions of a DBMS.  Major components of the DBMS environment.  Personnel involved in the DBMS environment.  History of the development of DBMSs.  Advantages and disadvantages of DBMSs.
  • 16. 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
  • 17. File-Based Systems  Early attempt to Computerize the manual filing system  Collection of application programs that perform services for the end users (e.g. reports).  Each program defines and manages its own data.
  • 18. Manual Filing Systems  Works well while number of items to be stored is small For only storage or retrieval functionality of large number of items
  • 19. File-Based Systems  Consider DreamHome example for file- based systems Sales Department : responsible for selling and renting of properties Contract Department: responsible for handling lease agreements
  • 20. Sales Department  PropertyForRent (propertyNo, street, city, postcode, type, rooms, rent, ownerNo)  Client (clientNo, fName, lName, telNo, preftype, maxRent)  PrivateOwner (ownerNo, fName, lName, address, telNo)
  • 21. ownerNo fName lName address telNo CO46 Joe Keogh … 01224-861212 CO87 Carol Farrel … 0141-357-7419 CO40 … … … … CO93 … … … … propertyNo street city postcode type rooms rent ownerNo PA14 … Aberdeen … House 6 650 CO46 PL94 … London … Flat 4 400 CO87 PG4 … Glasgow … Flat 3 350 CO40 PG36 … Glasgow … Flat 3 375 CO93 PG21 … Glasgow … House 5 600 CO87 PG16 … Glasgow … Flat 4 450 CO93 PrivateOwner PropertyForRent
  • 22. clientNo fName lName telNo prefType maxRent CR76 John Kay 0207-774-5632 Flat 425 CR56 Aline Stewart 0141-848-1825 Flat 350 CR74 Mike Ritchie 01475-392178 House 750 CR62 Mary Tregear 01224-196720 Flat 600 Client
  • 23. Contract Department  Lease (leaseNo, propertyNo, clientNo, rent , paymentMethod, deposit, paid, rentStart, rentFinish, duration)  PropertyForRent (propertyNo, street, city, postcode, type, rooms, rent)  Client (clientNo, fName, lName, telNo, preftype, maxRent)
  • 24. Lease leaseNo propertyNo clientNo rent --- rentStart rentFinish duration 10024 PA14 CR62 650 1-Jun-05 31-May-06 12 … … … … … … … … propertyNo street city postcode type rooms rent PA14 … Aberdeen … House 6 650 PL94 … London … Flat 4 400 PG4 … Glasgow … Flat 3 350 PG36 … Glasgow … Flat 3 375 PG21 … Glasgow … House 5 600 PG16 … Glasgow … Flat 4 450 PropertyForRent
  • 25. clientNo fName lName telNo CR76 John Kay 0207-774-5632 CR56 Aline Stewart 0141-848-1825 CR74 Mike Ritchie 01475-392178 CR62 Mary Tregear 01224-196720 Client
  • 27. Limitations of File-Based Approach  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.  For example, if we want to produce a list of all houses that match the requirements of the clients.  Duplication of data  Decentralized approach taken by each department.  Same data is held by different programs.  Wasted space and potentially different values and/or different formats for the same item.
  • 28. Limitations of File-Based Approach..  Data dependence  File structure is defined in the program code.  Incompatible file formats  Programs are written in different languages, and so cannot easily access each other’s files.  Fixed Queries/Proliferation of application programs  Programs are written to satisfy particular functions.  Any new requirement needs a new program.
  • 29. Database Approach  Arose because:  Definition of data was embedded in application programs, rather than being stored separately and independently.  No control over access and manipulation of data beyond that imposed by application programs.  Result:  the database and Database Management System (DBMS).
  • 30. Database  Shared collection of logically related data, and a description of this data, designed to meet the information needs of an organization.  System catalog (metadata) provides description of data to enable program- data independence.  Logically related data comprises entities, attributes, and relationships of an organization’s information.
  • 31. Database Management System (DBMS)  A software system that enables users to define, create, maintain, and control access to the database.  (Database) application program: a computer program that interacts with database by issuing an appropriate request (SQL statement) to the DBMS.
  • 33. Database Approach  Data definition language (DDL).  Permits specification of data types, structures and any data constraints.  All specifications are stored in the database.  Data manipulation language (DML).  General enquiry facility (query language) of the data.
  • 34. Database Approach..  Controlled access to database may include  A security system  Which prevents unauthorized users accessing the database  An integrity system  Which maintains the consistency of stored data  A concurrency control system  Which allows shared access of the database  A recovery control system  Which restores the database to a previous consistent state in case of hardware or software failure  A user-accessible catalog  Which contains description of the data in the database
  • 35. Views  Allows each user to have his or her own view of the database.  A view is essentially some subset of the database.
  • 36. 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
  • 37. Summary  Introduction to DB and DBMS  File-based systems and their limitations  Database approach
  • 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.
  • 40. Components of DBMS Environment..  Procedures  Instructions and rules that should be applied to the design and use of the database and DBMS.  People
  • 41. Roles in the Database Environment  Data Administrator (DA)  Database planning  Development and maintenance of standards, policies and procedures  Database Administrator (DBA)  Physical realization of the database  Physical database design and implementation  Security and integrity control  Maintenance of the operational system  Ensuring satisfactory performance of the applications for users  Database Designers (Logical and Physical)  Application Programmers  End Users (naive and sophisticated)
  • 42. History of Database Systems  Roots of the DBMS Apollo moon-landing project, 1960s NAA (North American Aviation), prime contractor for the project Developed a software GUAM (Generalized Update Access Method), hierarchical In mid – 1960s IBM joined NAA, result was IMS(Information Management System)
  • 43. History of Database Systems..  IDS ( Integrated Data Store) By General Electric, network, mid-1960  CODASYL ( Conference on Data Systems Languages)  DBTG (Data Base Task Group)
  • 44. History of Database Systems..  DBTG proposal in 1971, components The network schema: the logical organization of the entire database as seen by the DBA – which includes a definition of the database name, the type of each record, and the components of each record type. The subschema: the part of the database as seen by the user or application program; A data management language to define the data characteristics and the data structure, and to manipulate the data.
  • 45. History of Database Systems..  DBTG specified three languages A schema Data Definition Language (DDL), which enables the DBA to define the schema. A subschema DDL, which allows the application programs to define the parts of the database they require. A Data Manipulation Language (DML), to manipulate the data.
  • 46. History of Database Systems..  E. F. Codd, 1970 IBM Research Laboratory Relational model System R project by IBM’S San Jose Research Laboratory California Result of this project  Development of SQL  Commercial relational DBMS products e.g. DB2, SQL/DS from IBM, Oracle from Oracle Corp.
  • 47. DBMS Generations  First-generation  Hierarchical and Network  Second generation  Relational  Third generation  Object-Relational  Object-Oriented
  • 48. Advantages of DBMSs  Control of data redundancy  Data consistency  More information from the same amount of data  Sharing of data  Improved data integrity (constraints)  Improved security (authentication, rights)  Enforcement of standards (data formats, naming conventions, documentation etc.)
  • 49. Advantages of DBMSs..  Economy of scale (economical cost)  Balance conflicting requirements  Improved data accessibility and responsiveness (ad hoc queries)  Increased productivity (developer)  Improved maintenance through data independence  Increased concurrency
  • 50. Advantages of DBMSs..  Improved backup and recovery services
  • 51. Disadvantages of DBMSs  Complexity  Size (disk space for DBMS)  Cost of DBMS  Additional hardware costs  Cost of conversion  Performance  Higher impact of a failure
  • 52. Summary  Introduction to DB and DBMS  File-based systems and their limitations  Database approach  Components of the DBMS environment  Roles in the DB environment  History of DBMS  Advantages/Disadvantages of DBMSs