SlideShare a Scribd company logo
1 of 30
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley
Chapter 1
Databases and
Database Users
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Introduction
 Database
 Collection of related data
• Known facts that can be recorded and that have
implicit meaning
 Implicit properties:
• Represents some aspect of the real world:
Miniworld or universe of discourse (UoD)
• Logically coherent collection of data with inherent
meaning
• Built for a specific purpose
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Database management system
(DBMS)
 Database management system (DBMS): Collection of programs Enables
users to create and maintain a database;
 Defining a database: Specify the data types, structures, and constraints of the data to
be stored
• Meta-data: Database definition or descriptive information; Stored by the DBMS in the form of a
database catalog or dictionary
 Constructing: storing the data on some storage medium
 Manipulating a database
• Query and update the database miniworld
• Generate reports
 Sharing a database
• Allow multiple users and programs to access the database simultaneously
 Application program: Accesses database by sending queries to DBMS
• Query: Causes some data to be retrieved
• Transaction: May cause some data to be read and some data to be written into the database
 Protection includes:
• System protection: against hardware or software malfunction
• Security protection: against unauthorized or malicious access
 Maintain the database system
• Allow the system to evolve as requirements change over time
Database + DBMS = database system
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
An Example
 UNIVERSITY database
 Information concerning students, courses, and
grades in a university environment
 Data records
 STUDENT
 COURSE
 SECTION
 GRADE_REPORT
 PREREQUISITE
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
An Example (cont'd.)
 Specify structure of records of each file by specifying data type for each data element
 String of alphabetic characters
 Integer
 Etc.
 Construct UNIVERSITY database
 Store data to represent each student, course, section, grade report, and prerequisite as a record in
appropriate file
 Relationships among the records
 Records in STUDENT file is related to records in GRADE_REPORT
 Manipulation involves querying and updating
 Examples of queries:
• Retrieve the transcript
• List the names of students who took the section of the ‘Database’ course offered in fall 2008 and their grades in
that section
• List the prerequisites of the ‘Database’ course
 Examples of updates:
• Change the class of ‘Smith’ to sophomore
• Create a new section for the ‘Database’ course for this semester
• Enter a grade of ‘A’ for ‘Smith’ in the ‘Database’ section of last semester
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
An Example (cont'd.)
 Phases for designing a database:
 Requirements specification and analysis
 Conceptual design
 Logical design
 Physical design
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Characteristics of the Database
Approach
 File vs. database
 Traditional file processing
• Each user defines and implements the files needed
for a specific software application –duplicate efforts
• Waste storage space and in redundant efforts to
maintain common up to date data
• Data may become inconsistent
 Database approach: Single repository
maintains data that is defined once and then
accessed by various users
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Characteristics of the Database
Approach (cont'd.)
 Self-Describing Nature of a Database
System
 Database system contains complete definition
of structure and constraints
• Meta-data: information stored in the catalog
Describes structure of the database
 Database catalog used by:
• DBMS software
• Database users who need information about
database structure

Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Characteristics of the Database
Approach (cont'd.)
 Insulation Between Programs and Data
 Program-data independence
• Structure of data files is stored in DBMS catalog separately from access programs
• Program-operation independence
 Operations specified in two parts:
• Interface includes operation name and data types of its arguments
• Implementation can be changed without affecting the interface
 Data Abstraction: Allows program-data independence and program-
operation independence
• DBMS provide Conceptual representation of data
• Does not include details of how data is stored or how operations are implemented
• Data model is Type of data abstraction used to provide conceptual representation
• Data model uses logical concepts, such as objects, their properties and their relationships
• Data model hides storage and implementation details that are not of interest to most
database users
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Characteristics of the Database
Approach (cont'd.)
 Support of Multiple Views of the Data
 View
• Subset of the database
• Contains virtual data derived from the database
files but is not explicitly stored
 Multiuser DBMS
• Users have a variety of distinct applications
• Must provide facilities for defining multiple views
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Characteristics of the Database
Approach (cont'd.)
 Sharing of Data and Multiuser Transaction Processing
 Allow multiple users to access the database at the same time
 Concurrency control software
• Ensure that several users trying to update the same data do so in a controlled
manner
• Result of the updates is correct
 Online transaction processing (OLTP) application
• Multiple agents access to flight ticket for reservation
 Transaction: is an executing program or process that includes one
or more database accesses.
• Central to many database applications
• Executing program or process that includes one or more database
• Transaction properties:
• Isolation property: Each transaction appears to execute in isolation from other
transactions
• Atomicity property: Either all the database operations in a transaction are executed or
none are
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Actors on the Scene
 Database administrators (DBA) are responsible for:
 Authorizing access to the database
 Coordinating and monitoring its use
 Acquiring software and hardware resources
 Database designers are responsible for:
 Identifying the data to be stored
 Choosing appropriate structures to represent and store this data
 System analysts: Determine requirements of end users, and develop
specifications fro standard canned transactions that meet these requirements.
 Application programmers: Implement these specifications as programs.
 End users: People whose jobs require access to the database
 Casual end users
 Naive or parametric end users
• Reservation agents; bank teller
 Sophisticated end users
 Standalone users
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Workers behind the Scene
 DBMS system designers and
implementers
 Design and implement the DBMS modules and
interfaces as a software package
 Tool developers
 Design and implement tools
 Operators and maintenance personnel
 Responsible for running and maintenance of
hardware and software environment for
database system
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Advantages of Using the DBMS
Approach
 Controlling redundancy
 Redundancy: storing data multiple times:
• Redundancy is controlled when the DBMS ensures
that multiple copies of the same data are consistent
• If the DBMS has no control over this, we have
uncontrolled redundancy.
 Data normalization: store each logical data
item in only one place
 Denormalization: Sometimes necessary to
use controlled redundancy to improve the
performance of queries
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Advantages of Using the DBMS
Approach
 Restricting unauthorized access
 Security and authorization subsystem
 Privileged software
 Providing persistent storage for program
objects
 Complex object in C++ can be stored
permanently in an object-oriented DBMS
 Impedance mismatch problem
• Object-oriented database systems typically offer
data structure compatibility
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Advantages of Using the DBMS
Approach (cont'd.)
 Providing storage structures and search techniques for
efficient query processing
 Indexes
 Buffering and caching
 Query processing and optimization
 Providing backup and recovery
 Backup and recovery subsystem of the DBMS is
responsible for recovery
 Providing multiple user interfaces
 Graphical user interfaces (GUIs)
 Representing complex relationships among data
 May include numerous varieties of data that are interrelated
in many ways
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Advantages of Using the DBMS
Approach (cont'd.)
 Enforcing integrity constraints
 Referential integrity constraint
• Every section record must be related to a course
record
 Key or uniqueness constraint
• Every course record must have a unique value for
Course_number
 Business rules
 Inherent rules of the data model
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Advantages of Using the DBMS
Approach (cont'd.)
 Permitting inferencing and actions using rules
 Deductive database systems
• Provide capabilities for defining deduction rules
• Inference new information from the stored database facts
 Trigger: a form of a rule activated by updates
to the table, which results in performing
additional operations to some other tables.
 Stored procedures
• More involved procedures to enforce rules
• Active database system: provide active rules that
can automatically initiate actions when certain
events and condition occur
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Advantages of Using the DBMS
Approach (cont'd.)
 Additional implications of using the
database approach
 Potential for enforcing standards
 Reduced application development time
 Flexibility
 Availability of up-to-date information
 Economies of scale
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
A Brief History of Database
Applications
 Early database applications using
hierarchical and network systems
 Large numbers of records of similar structure
 Providing data abstraction and application
flexibility with relational databases
 Separates physical storage of data from its
conceptual representation
 Provides a mathematical foundation for data
representation and querying
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
A Brief History of Database
Applications (cont'd.)
 Object-oriented applications and the need
for more complex databases
 Used in specialized applications: engineering
design, multimedia publishing, and
manufacturing systems
 Interchanging data on the Web for e-
commerce using XML
 Extended markup language (XML) primary
standard for interchanging data among various
types of databases and Web pages
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
A Brief History of Database
Applications (cont'd.)
 Extending database capabilities for new
applications
 Extensions to better support specialized
requirements for applications
 Enterprise resource planning (ERP)
 Customer relationship management (CRM)
 Databases versus information retrieval
 Information retrieval (IR)
• Deals with books, manuscripts, and various forms of
library-based articles
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
When Not to Use a DBMS
 More desirable to use regular files for:
 Simple, well-defined database applications not
expected to change at all
 Stringent, real-time requirements that may not
be met because of DBMS overhead
 Embedded systems with limited storage
capacity
 No multiple-user access to data
Copyright © 2011 Ramez Elmasri and Shamkant Navathe
Summary
 Database
 Collection of related data (recorded facts)
 DBMS
 Generalized software package for
implementing and maintaining a computerized
database
 Several categories of database users
 Database applications have evolved
 Current trends: IR, Web, no-sql

More Related Content

What's hot

Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQLRam Kedem
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbmsNaresh Kumar
 
SQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJSQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJDharita Chokshi
 
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...Edureka!
 
1 introduction databases and database users
1 introduction databases and database users1 introduction databases and database users
1 introduction databases and database usersKumar
 
Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management systemPooja Dixit
 
Introduction to database & sql
Introduction to database & sqlIntroduction to database & sql
Introduction to database & sqlzahid6
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modelingsontumax
 
Functional dependency and normalization
Functional dependency and normalizationFunctional dependency and normalization
Functional dependency and normalizationVisakh V
 
Object Oriented Programming Languages
Object Oriented Programming LanguagesObject Oriented Programming Languages
Object Oriented Programming LanguagesMannu Khani
 
Database backup & recovery
Database backup & recoveryDatabase backup & recovery
Database backup & recoveryMustafa Khan
 
Object Oriented Concepts and Principles
Object Oriented Concepts and PrinciplesObject Oriented Concepts and Principles
Object Oriented Concepts and Principlesdeonpmeyer
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modelingDhani Ahmad
 
Functional dependencies in Database Management System
Functional dependencies in Database Management SystemFunctional dependencies in Database Management System
Functional dependencies in Database Management SystemKevin Jadiya
 

What's hot (20)

Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
All data models in dbms
All data models in dbmsAll data models in dbms
All data models in dbms
 
SQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJSQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJ
 
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
MySQL Tutorial For Beginners | Relational Database Management System | MySQL ...
 
1 introduction databases and database users
1 introduction databases and database users1 introduction databases and database users
1 introduction databases and database users
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Distributed database management system
Distributed database management  systemDistributed database management  system
Distributed database management system
 
DBMS - Normalization
DBMS - NormalizationDBMS - Normalization
DBMS - Normalization
 
Introduction to database & sql
Introduction to database & sqlIntroduction to database & sql
Introduction to database & sql
 
Fundamentals of DBMS
Fundamentals of DBMSFundamentals of DBMS
Fundamentals of DBMS
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
 
Database & Database Users
Database & Database UsersDatabase & Database Users
Database & Database Users
 
Databases
DatabasesDatabases
Databases
 
Functional dependency and normalization
Functional dependency and normalizationFunctional dependency and normalization
Functional dependency and normalization
 
Object Oriented Programming Languages
Object Oriented Programming LanguagesObject Oriented Programming Languages
Object Oriented Programming Languages
 
Database backup & recovery
Database backup & recoveryDatabase backup & recovery
Database backup & recovery
 
Object Oriented Concepts and Principles
Object Oriented Concepts and PrinciplesObject Oriented Concepts and Principles
Object Oriented Concepts and Principles
 
Chapter10 conceptual data modeling
Chapter10 conceptual data modelingChapter10 conceptual data modeling
Chapter10 conceptual data modeling
 
Database Normalization by Dr. Kamal Gulati
Database Normalization by Dr. Kamal GulatiDatabase Normalization by Dr. Kamal Gulati
Database Normalization by Dr. Kamal Gulati
 
Functional dependencies in Database Management System
Functional dependencies in Database Management SystemFunctional dependencies in Database Management System
Functional dependencies in Database Management System
 

Similar to FDS (Sixth Edition) | C1 | Databases and Database Users

Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbmssethu pm
 
Characteristic of dabase approach
Characteristic of dabase approachCharacteristic of dabase approach
Characteristic of dabase approachLuina Pani
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2Mukund Trivedi
 
Arinda oktaviana 11353204810 vii lokal g
Arinda oktaviana 11353204810   vii lokal gArinda oktaviana 11353204810   vii lokal g
Arinda oktaviana 11353204810 vii lokal gArinda oktaviana
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notesUTSAHSINGH2
 
Lecture-01-Fundamental-Database-Concepts.pptx.pdf
Lecture-01-Fundamental-Database-Concepts.pptx.pdfLecture-01-Fundamental-Database-Concepts.pptx.pdf
Lecture-01-Fundamental-Database-Concepts.pptx.pdfSharmainnePale
 
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMDatabase Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMmoronfolabukunmi
 
DBMS basics and normalizations unit.pptx
DBMS basics and normalizations unit.pptxDBMS basics and normalizations unit.pptx
DBMS basics and normalizations unit.pptxshreyassoni7
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdfMuniraALmogren
 
Utsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.pptChSheraz3
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdfTOUSEEQHAIDER14
 

Similar to FDS (Sixth Edition) | C1 | Databases and Database Users (20)

PHP/MySQL First Session Material
PHP/MySQL First Session MaterialPHP/MySQL First Session Material
PHP/MySQL First Session Material
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
 
Characteristic of dabase approach
Characteristic of dabase approachCharacteristic of dabase approach
Characteristic of dabase approach
 
9a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc29a797dbms chapter1 b.sc2
9a797dbms chapter1 b.sc2
 
Arinda oktaviana 11353204810 vii lokal g
Arinda oktaviana 11353204810   vii lokal gArinda oktaviana 11353204810   vii lokal g
Arinda oktaviana 11353204810 vii lokal g
 
Unit1 dbms
Unit1 dbmsUnit1 dbms
Unit1 dbms
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
 
Lecture-01-Fundamental-Database-Concepts.pptx.pdf
Lecture-01-Fundamental-Database-Concepts.pptx.pdfLecture-01-Fundamental-Database-Concepts.pptx.pdf
Lecture-01-Fundamental-Database-Concepts.pptx.pdf
 
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEMDatabase Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
Database Systems(DBS) Or DATABASE MANAGEMENT SYSTEM
 
Database Lecture Notes
Database Lecture NotesDatabase Lecture Notes
Database Lecture Notes
 
DBMS basics and normalizations unit.pptx
DBMS basics and normalizations unit.pptxDBMS basics and normalizations unit.pptx
DBMS basics and normalizations unit.pptx
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdf
 
Utsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnet
 
Lecture-1.ppt
Lecture-1.pptLecture-1.ppt
Lecture-1.ppt
 
Dbms mca-section a
Dbms mca-section aDbms mca-section a
Dbms mca-section a
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
 
Intoduction- Database Management System
Intoduction- Database Management SystemIntoduction- Database Management System
Intoduction- Database Management System
 

More from Harsh Verdhan Raj

More from Harsh Verdhan Raj (20)

Ch25 - Configuration Management
Ch25 - Configuration ManagementCh25 - Configuration Management
Ch25 - Configuration Management
 
Ch24 - Quality Management
Ch24 - Quality ManagementCh24 - Quality Management
Ch24 - Quality Management
 
Ch23 - Project Planning
Ch23 - Project PlanningCh23 - Project Planning
Ch23 - Project Planning
 
Ch22 - Project Management
Ch22 - Project ManagementCh22 - Project Management
Ch22 - Project Management
 
Ch21 - Real Time Software Engineering
Ch21 - Real Time Software EngineeringCh21 - Real Time Software Engineering
Ch21 - Real Time Software Engineering
 
Ch20 - Systems of Systems
Ch20 - Systems of SystemsCh20 - Systems of Systems
Ch20 - Systems of Systems
 
Ch19 - Systems Engineering
Ch19 - Systems EngineeringCh19 - Systems Engineering
Ch19 - Systems Engineering
 
Ch18 - Service Oriented Software Engineering
Ch18 - Service Oriented Software EngineeringCh18 - Service Oriented Software Engineering
Ch18 - Service Oriented Software Engineering
 
Ch17 - Distributed Software Engineering
Ch17 - Distributed Software EngineeringCh17 - Distributed Software Engineering
Ch17 - Distributed Software Engineering
 
Ch16 - Component Based Software Engineering
Ch16 - Component Based Software EngineeringCh16 - Component Based Software Engineering
Ch16 - Component Based Software Engineering
 
Ch15 - Software Reuse
Ch15 - Software ReuseCh15 - Software Reuse
Ch15 - Software Reuse
 
Ch14 - Resilience Engineering
Ch14 - Resilience EngineeringCh14 - Resilience Engineering
Ch14 - Resilience Engineering
 
Ch13 - Security Engineering
Ch13 - Security EngineeringCh13 - Security Engineering
Ch13 - Security Engineering
 
Ch12 - Safety Engineering
Ch12 - Safety EngineeringCh12 - Safety Engineering
Ch12 - Safety Engineering
 
Ch11 - Reliability Engineering
Ch11 - Reliability EngineeringCh11 - Reliability Engineering
Ch11 - Reliability Engineering
 
Ch10 - Dependable Systems
Ch10 - Dependable SystemsCh10 - Dependable Systems
Ch10 - Dependable Systems
 
Ch9 - Evolution
Ch9 - EvolutionCh9 - Evolution
Ch9 - Evolution
 
Ch8 - Testing
Ch8 - TestingCh8 - Testing
Ch8 - Testing
 
Ch7 - Implementation
Ch7 - ImplementationCh7 - Implementation
Ch7 - Implementation
 
Ch6 - Architectural Design
Ch6 - Architectural DesignCh6 - Architectural Design
Ch6 - Architectural Design
 

Recently uploaded

data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
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 PPTbhaskargani46
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSrknatarajan
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 

Recently uploaded (20)

data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
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
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 

FDS (Sixth Edition) | C1 | Databases and Database Users

  • 1. Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1 Databases and Database Users
  • 2. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Introduction  Database  Collection of related data • Known facts that can be recorded and that have implicit meaning  Implicit properties: • Represents some aspect of the real world: Miniworld or universe of discourse (UoD) • Logically coherent collection of data with inherent meaning • Built for a specific purpose
  • 3. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Database management system (DBMS)  Database management system (DBMS): Collection of programs Enables users to create and maintain a database;  Defining a database: Specify the data types, structures, and constraints of the data to be stored • Meta-data: Database definition or descriptive information; Stored by the DBMS in the form of a database catalog or dictionary  Constructing: storing the data on some storage medium  Manipulating a database • Query and update the database miniworld • Generate reports  Sharing a database • Allow multiple users and programs to access the database simultaneously  Application program: Accesses database by sending queries to DBMS • Query: Causes some data to be retrieved • Transaction: May cause some data to be read and some data to be written into the database  Protection includes: • System protection: against hardware or software malfunction • Security protection: against unauthorized or malicious access  Maintain the database system • Allow the system to evolve as requirements change over time Database + DBMS = database system
  • 4. Copyright © 2011 Ramez Elmasri and Shamkant Navathe
  • 5. Copyright © 2011 Ramez Elmasri and Shamkant Navathe An Example  UNIVERSITY database  Information concerning students, courses, and grades in a university environment  Data records  STUDENT  COURSE  SECTION  GRADE_REPORT  PREREQUISITE
  • 6. Copyright © 2011 Ramez Elmasri and Shamkant Navathe
  • 7. Copyright © 2011 Ramez Elmasri and Shamkant Navathe An Example (cont'd.)  Specify structure of records of each file by specifying data type for each data element  String of alphabetic characters  Integer  Etc.  Construct UNIVERSITY database  Store data to represent each student, course, section, grade report, and prerequisite as a record in appropriate file  Relationships among the records  Records in STUDENT file is related to records in GRADE_REPORT  Manipulation involves querying and updating  Examples of queries: • Retrieve the transcript • List the names of students who took the section of the ‘Database’ course offered in fall 2008 and their grades in that section • List the prerequisites of the ‘Database’ course  Examples of updates: • Change the class of ‘Smith’ to sophomore • Create a new section for the ‘Database’ course for this semester • Enter a grade of ‘A’ for ‘Smith’ in the ‘Database’ section of last semester
  • 8. Copyright © 2011 Ramez Elmasri and Shamkant Navathe An Example (cont'd.)  Phases for designing a database:  Requirements specification and analysis  Conceptual design  Logical design  Physical design
  • 9. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Characteristics of the Database Approach  File vs. database  Traditional file processing • Each user defines and implements the files needed for a specific software application –duplicate efforts • Waste storage space and in redundant efforts to maintain common up to date data • Data may become inconsistent  Database approach: Single repository maintains data that is defined once and then accessed by various users
  • 10. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Characteristics of the Database Approach (cont'd.)  Self-Describing Nature of a Database System  Database system contains complete definition of structure and constraints • Meta-data: information stored in the catalog Describes structure of the database  Database catalog used by: • DBMS software • Database users who need information about database structure 
  • 11. Copyright © 2011 Ramez Elmasri and Shamkant Navathe
  • 12. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Characteristics of the Database Approach (cont'd.)  Insulation Between Programs and Data  Program-data independence • Structure of data files is stored in DBMS catalog separately from access programs • Program-operation independence  Operations specified in two parts: • Interface includes operation name and data types of its arguments • Implementation can be changed without affecting the interface  Data Abstraction: Allows program-data independence and program- operation independence • DBMS provide Conceptual representation of data • Does not include details of how data is stored or how operations are implemented • Data model is Type of data abstraction used to provide conceptual representation • Data model uses logical concepts, such as objects, their properties and their relationships • Data model hides storage and implementation details that are not of interest to most database users
  • 13. Copyright © 2011 Ramez Elmasri and Shamkant Navathe
  • 14. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Characteristics of the Database Approach (cont'd.)  Support of Multiple Views of the Data  View • Subset of the database • Contains virtual data derived from the database files but is not explicitly stored  Multiuser DBMS • Users have a variety of distinct applications • Must provide facilities for defining multiple views
  • 15. Copyright © 2011 Ramez Elmasri and Shamkant Navathe
  • 16. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Characteristics of the Database Approach (cont'd.)  Sharing of Data and Multiuser Transaction Processing  Allow multiple users to access the database at the same time  Concurrency control software • Ensure that several users trying to update the same data do so in a controlled manner • Result of the updates is correct  Online transaction processing (OLTP) application • Multiple agents access to flight ticket for reservation  Transaction: is an executing program or process that includes one or more database accesses. • Central to many database applications • Executing program or process that includes one or more database • Transaction properties: • Isolation property: Each transaction appears to execute in isolation from other transactions • Atomicity property: Either all the database operations in a transaction are executed or none are
  • 17. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Actors on the Scene  Database administrators (DBA) are responsible for:  Authorizing access to the database  Coordinating and monitoring its use  Acquiring software and hardware resources  Database designers are responsible for:  Identifying the data to be stored  Choosing appropriate structures to represent and store this data  System analysts: Determine requirements of end users, and develop specifications fro standard canned transactions that meet these requirements.  Application programmers: Implement these specifications as programs.  End users: People whose jobs require access to the database  Casual end users  Naive or parametric end users • Reservation agents; bank teller  Sophisticated end users  Standalone users
  • 18. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Workers behind the Scene  DBMS system designers and implementers  Design and implement the DBMS modules and interfaces as a software package  Tool developers  Design and implement tools  Operators and maintenance personnel  Responsible for running and maintenance of hardware and software environment for database system
  • 19. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Advantages of Using the DBMS Approach  Controlling redundancy  Redundancy: storing data multiple times: • Redundancy is controlled when the DBMS ensures that multiple copies of the same data are consistent • If the DBMS has no control over this, we have uncontrolled redundancy.  Data normalization: store each logical data item in only one place  Denormalization: Sometimes necessary to use controlled redundancy to improve the performance of queries
  • 20. Copyright © 2011 Ramez Elmasri and Shamkant Navathe
  • 21. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Advantages of Using the DBMS Approach  Restricting unauthorized access  Security and authorization subsystem  Privileged software  Providing persistent storage for program objects  Complex object in C++ can be stored permanently in an object-oriented DBMS  Impedance mismatch problem • Object-oriented database systems typically offer data structure compatibility
  • 22. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Advantages of Using the DBMS Approach (cont'd.)  Providing storage structures and search techniques for efficient query processing  Indexes  Buffering and caching  Query processing and optimization  Providing backup and recovery  Backup and recovery subsystem of the DBMS is responsible for recovery  Providing multiple user interfaces  Graphical user interfaces (GUIs)  Representing complex relationships among data  May include numerous varieties of data that are interrelated in many ways
  • 23. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Advantages of Using the DBMS Approach (cont'd.)  Enforcing integrity constraints  Referential integrity constraint • Every section record must be related to a course record  Key or uniqueness constraint • Every course record must have a unique value for Course_number  Business rules  Inherent rules of the data model
  • 24. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Advantages of Using the DBMS Approach (cont'd.)  Permitting inferencing and actions using rules  Deductive database systems • Provide capabilities for defining deduction rules • Inference new information from the stored database facts  Trigger: a form of a rule activated by updates to the table, which results in performing additional operations to some other tables.  Stored procedures • More involved procedures to enforce rules • Active database system: provide active rules that can automatically initiate actions when certain events and condition occur
  • 25. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Advantages of Using the DBMS Approach (cont'd.)  Additional implications of using the database approach  Potential for enforcing standards  Reduced application development time  Flexibility  Availability of up-to-date information  Economies of scale
  • 26. Copyright © 2011 Ramez Elmasri and Shamkant Navathe A Brief History of Database Applications  Early database applications using hierarchical and network systems  Large numbers of records of similar structure  Providing data abstraction and application flexibility with relational databases  Separates physical storage of data from its conceptual representation  Provides a mathematical foundation for data representation and querying
  • 27. Copyright © 2011 Ramez Elmasri and Shamkant Navathe A Brief History of Database Applications (cont'd.)  Object-oriented applications and the need for more complex databases  Used in specialized applications: engineering design, multimedia publishing, and manufacturing systems  Interchanging data on the Web for e- commerce using XML  Extended markup language (XML) primary standard for interchanging data among various types of databases and Web pages
  • 28. Copyright © 2011 Ramez Elmasri and Shamkant Navathe A Brief History of Database Applications (cont'd.)  Extending database capabilities for new applications  Extensions to better support specialized requirements for applications  Enterprise resource planning (ERP)  Customer relationship management (CRM)  Databases versus information retrieval  Information retrieval (IR) • Deals with books, manuscripts, and various forms of library-based articles
  • 29. Copyright © 2011 Ramez Elmasri and Shamkant Navathe When Not to Use a DBMS  More desirable to use regular files for:  Simple, well-defined database applications not expected to change at all  Stringent, real-time requirements that may not be met because of DBMS overhead  Embedded systems with limited storage capacity  No multiple-user access to data
  • 30. Copyright © 2011 Ramez Elmasri and Shamkant Navathe Summary  Database  Collection of related data (recorded facts)  DBMS  Generalized software package for implementing and maintaining a computerized database  Several categories of database users  Database applications have evolved  Current trends: IR, Web, no-sql