SlideShare une entreprise Scribd logo
1  sur  31
Jimma University
Institute of Technology
School of computing
Fundamentals of Database systems
CHAPTER ONE
Introduction:
Databases and Database Users
Chapter one
Chapter Objectives
At the end the chapter students should able to know:
 The meaning of the term ‘database’.
 The meaning of the term ‘database management system’
(DBMS).
 Some common uses of database systems.
 The characteristics of Database systems.
 The problems with the file-based approach.
 The typical functions of a DBMS.
 The major components of the DBMS environment.
 The history of the development of DBMSs.
 The advantages and disadvantages of DBMSs.
Definitions
 Database
is a collection of related data.
 Data
is a collection of facts and figures that can be processed to produce
information.
 Database Management System or DBMS
 in short refers to the technology of storing and retrieving users’
data with utmost efficiency along with appropriate security
measures.
 A software package/ system to facilitate the creation and
maintenance of a computerized database.
 stores data in such a way that it becomes easier to retrieve,
manipulate, and produce information.
 Database System:
 The DBMS software together with the data itself. Sometimes, the
applications are also included.
Simplified database system environment
.
Figure 1.1. Simplified database system environment
Characteristics-
DBMS was a new concept then, and all the research was done to
make it overcome the deficiencies in traditional style of data
management.
1. Real-world entity − A modern DBMS is more realistic and
uses real-world entities to design its architecture.
 It uses the behavior and attributes too.
 For example, a school database may use students as an
entity and their age as an attribute.
2. Relation-based tables − DBMS allows entities and relations
among them to form tables.
A user can understand the architecture of a database just by
looking at the table names.
3. Isolation of data and application − A database
system is entirely different than its data.
A database is an active entity, whereas data is said to be
passive, on which the database works and organizes.
DBMS also stores metadata, which is data about data, to ease its own
process.
4. Less redundancy − DBMS follows the rules of normalization,
which splits a relation when any of its attributes is having
redundancy in values.
Normalization is a mathematically rich and scientific process that
reduces data redundancy.
5. Consistency− Consistency is a state where every relation
in a database remains consistent.
There exist methods and techniques, which can detect
attempt of leaving database in inconsistent state.
A DBMS can provide greater consistency as compared to
earlier forms of data storing applications like file-processing
systems.
6. Query Language − DBMS is equipped with query language,
which makes it more efficient to retrieve and manipulate data.
A user can apply as many and as different filtering options as
required to retrieve a set of data.
Traditionally it was not possible where file-processing system was
used.
8. ACID Properties − DBMS follows the concepts
of Atomicity, Consistency, Isolation, and Durability (normally
shortened as ACID). These concepts are applied on transactions, which
manipulate data in a database.
 Atomicity − is, either all of its operations are executed or none.
 Consistency − No transaction should have any adverse effect on the
data residing in the database.
 Isolation − No transaction will affect the existence of any other
transaction.
 Durability − The database should be durable enough to hold all its
latest updates even if the system fails or restarts.
9. Multiuser and Concurrent Access − DBMS supports
multi-user environment and allows them to access and manipulate
data in parallel.
10.Multiple views − DBMS offers multiple views for different
users. A user who is in the Sales department will have a different view
of database than a person working in the Production department.
11. Security − Features like multiple views offer security to some
extent where users are unable to access data of other users and
departments.
DBMS offers many different levels of security features, which enables
multiple users to have different views with different features.
Typical DBMS Functionality
 Define a particular database in terms of its data types,
structures, and constraints
 Construct or Load the initial database contents on a
secondary storage medium
 Manipulating the database:
 Retrieval: Querying, generating reports
 Modification: Insertions, deletions and updates to its content
 Accessing the database through Web applications
Cont…
Processing and Sharing by a set of concurrent users
and application programs –yet, keeping all data valid
and consistent
Other features:
 Protection or Security measures to prevent unauthorized
access
 Active processing to take internal actions on data
 Presentation and Visualization of data
 Maintaining the database and associated programs over the
lifetime of the database application Called database, software,
and system maintenance
Example of a Database
(with a Conceptual Data Model)
Example:
 UNIVERSITY Database
Some entities:
 STUDENTs
 COURSEs
 SECTIONs (of COURSEs)
 (academic) DEPARTMENTs
 INSTRUCTORs
 Some relationships:
 SECTIONs are of specific COURSEs
 STUDENTs take SECTIONs
 COURSEs have prerequisite COURSEs
 INSTRUCTORs teach SECTIONs
 COURSEs are offered by DEPARTMENTs
 STUDENTs major in DEPARTMENTs
* Note: The above entities and relationships are typically
expressed in a conceptual data model, such as the ENTITY-
RELATIONSHIP data model.
File-based System: 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.
Traditionally, data was organized in file formats.
Disadvantage
 Separation and isolation of data
 Duplication of data and inconsistency
 Data dependence
 Incompatible file formats
 Fixed queries/proliferation of application programs
 Difficulty in accessing data
 Integrity problems
 Atomicity problems
 Concurrent-access anomalies
 Security problems
 What is table?
 The data in DBMS is stored in database objects called tables.
 The table is a collection of related data entries and it consists
of columns and rows.
 What is field?
 Every table is broken up into smaller entities called fields. The fields in the
CUSTOMERS table consist of ID, NAME, AGE, ADDRESS and SALARY.
A field is a column in a table that is designed to maintain specific
information about every record in the table.
 What is record or row?
A record, also called a row of data, is each individual entry that exists in a
table
A record is a horizontal entity in a table.
What is column?
 A column is a vertical entity in a table that contains all
information associated with a specific field in a table.
 For example, a column in the CUSTOMERS table is ADDRESS,
which represents location description and would consist of the
following:
Users
A typical DBMS has users with different rights and permissions who use
it for different purposes.
Some users retrieve data and some back it up.
 The users of a DBMS can be broadly categorized as follows −
I. Administrators − Administrators maintain the DBMS and are
responsible for administrating the database.
 responsible to look after its usage and by whom it should be used.
 Can create access profiles for users and apply limitations to
maintain isolation and force security.
 Look after DBMS resources like system license, required tools, and
other software and hardware related maintenance.
II. Designers − are the group of people who actually work on the
designing part of the database.
 Keep a close watch on what data should be kept and in what
format.
 Identify and design the whole set of entities, relations, constraints,
and views.
III.End Users − End users are those who actually reap the
benefits of having a DBMS.
 End users can range from simple viewers who pay attention to
the logs or market rates to sophisticated users such as business
analysts.
 Categories of End-users
 Casual: access database occasionally when needed
 Naïve or Parametric: they make up a large section of the end-user
population.
 They use previously well-defined functions in the form of
“canned transactions” against the database.
 Examples are bank-tellers or reservation clerks who do this
activity for an entire shift of operations.
 Sophisticated:
 These include business analysts, scientists, engineers, others
thoroughly familiar with the system capabilities.
 Many use tools in the form of software packages that work
closely with the stored database.
 Stand-alone:
 Mostly maintain personal databases using ready-to-use
packaged applications.
 An example is a tax program user that creates its own internal
database.
 Another example is maintaining an address book
Historical Development of Database Technology
 Early Database Applications:
 The Hierarchical and Network Models were introduced in mid
1960s and dominated during the seventies.
 A bulk of the worldwide database processing still occurs using
these models.
 Relational Model based Systems:
 Relational model was originally introduced in 1970, was
heavily researched and experimented with in IBM Research
and several universities.
 Relational DBMS Products emerged in the 1980s.
Historical Development of Database Technology
 Object-oriented and emerging applications:
 Object-Oriented Database Management Systems (OODBMSs)
were introduced in late 1980s and early 1990s to cater to the
need of complex data processing in CAD and other
applications.
 Their use has not taken off much.
 Many relational DBMSs have incorporated object database
concepts, leading to a new category called object-relational
DBMSs (ORDBMSs)
 Extended relational systems add further capabilities (e.g. for
multimedia data, XML, and other data types)
Historical Development of Database Technology
 Data on the Web and E-commerce Applications:
 Web contains data in HTML (Hypertext markup language)
with links among pages.
 This has given rise to a new set of applications and E-
commerce is using new standards like XML (extended
Markup Language).
 Script programming languages such as PHP and JavaScript
allow generation of dynamic Web pages that are partially
generated from a database
 Also allow database updates through Web pages
Applications
 Traditional Applications:
 Numeric and Textual Databases
 More Recent Applications:
 Multimedia Databases
 Geographic Information Systems (GIS)
 Data Warehouses
 Real-time and Active Databases
 Many other applications
a) BANKING: For customer ,information, account, loans, and
transaction.
b) Airline: For reservation and schedule information. Airline were
among the first to use database in a geographically distributed
manner terminals situated around the world accessed the central
database system through phone lines and other data network.
c) Universities: For students information, course registration, and
grades.
d) Credits card transaction: For purchases on credits cards and
generation of monthly statements.
e) Sales: For customer, product, and purchase information.
f) Human resources: For information about employees, salaries,
payroll taxes and benefits, and for generation of paychecks.
When not to use a DBMS
 Main inhibitors (costs) of using a DBMS:
 High initial investment and possible need for additional
hardware.
 Overhead for providing generality, security, concurrency
control, recovery, and integrity functions.
 When a DBMS may be unnecessary:
 If the database and applications are simple, well defined, and
not expected to change.
 If there are stringent real-time requirements that may not be
met because of DBMS overhead.
 If access to data by multiple users is not required.
When not to use a DBMS
 When no DBMS may suffice:
 If the database system is not able to handle the complexity of
data because of modeling limitations
 If the database users need special operations not supported by
the DBMS.
Summary
Types of Databases and Database Applications
Basic Definitions
Typical DBMS Functionality
Example of a Database (UNIVERSITY)
Main Characteristics of the Database
Database Users
Advantages of Using the Database Approach
When Not to Use Databases

Contenu connexe

Tendances

Tendances (19)

database ppt(2)
database ppt(2)database ppt(2)
database ppt(2)
 
Ena ch01
Ena ch01Ena ch01
Ena ch01
 
Chapter01
Chapter01Chapter01
Chapter01
 
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
DATABASE MANAGEMENT SYSTEM UNIT-I Chapter-1
 
Database System Concepts
Database System ConceptsDatabase System Concepts
Database System Concepts
 
A critique on traditional file system vs databases
A critique on traditional file system vs databasesA critique on traditional file system vs databases
A critique on traditional file system vs databases
 
Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
 
En ch23
En ch23En ch23
En ch23
 
Database Management System And Design Questions
Database Management System And Design QuestionsDatabase Management System And Design Questions
Database Management System And Design Questions
 
Database
DatabaseDatabase
Database
 
Intoduction- Database Management System
Intoduction- Database Management SystemIntoduction- Database Management System
Intoduction- Database Management System
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
DBMS 1 | Introduction to DBMS
DBMS 1 | Introduction to DBMSDBMS 1 | Introduction to DBMS
DBMS 1 | Introduction to DBMS
 
Characteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management SystemCharacteristics and Advantages of Database Management System
Characteristics and Advantages of Database Management System
 
B.Sc. II (IV Sem) RDBMS & PL/SQL Unit-1 Fundamentals of DBMS
B.Sc. II (IV Sem) RDBMS & PL/SQL Unit-1 Fundamentals of DBMSB.Sc. II (IV Sem) RDBMS & PL/SQL Unit-1 Fundamentals of DBMS
B.Sc. II (IV Sem) RDBMS & PL/SQL Unit-1 Fundamentals of DBMS
 
Complete dbms notes
Complete dbms notesComplete dbms notes
Complete dbms notes
 
jose rizal
jose rizaljose rizal
jose rizal
 
Database v1
Database v1Database v1
Database v1
 
Arinda oktaviana 11353204810 vii lokal g
Arinda oktaviana 11353204810   vii lokal gArinda oktaviana 11353204810   vii lokal g
Arinda oktaviana 11353204810 vii lokal g
 

Similaire à Chapter one

Database management system
Database management systemDatabase management system
Database management systemsonykhan3
 
DBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDivyaKS12
 
Database management systems
Database management systemsDatabase management systems
Database management systemsJoel Briza
 
Unit 2 rdbms study_material
Unit 2  rdbms study_materialUnit 2  rdbms study_material
Unit 2 rdbms study_materialgayaramesh
 
Database Management System.docx
Database Management System.docxDatabase Management System.docx
Database Management System.docxantonymwangi31
 
Computer applications.pptx
Computer applications.pptxComputer applications.pptx
Computer applications.pptxEmmanuel235416
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbmssethu pm
 
Database management system by Gursharan singh
Database management system by Gursharan singhDatabase management system by Gursharan singh
Database management system by Gursharan singhGursharan Singh
 
chapter 1-Introduction Fundamentals of database system.pdf
chapter 1-Introduction Fundamentals of database system.pdfchapter 1-Introduction Fundamentals of database system.pdf
chapter 1-Introduction Fundamentals of database system.pdfMisganawAbeje1
 

Similaire à Chapter one (20)

Dbms quick guide
Dbms quick guideDbms quick guide
Dbms quick guide
 
Database management system
Database management systemDatabase management system
Database management system
 
DBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptx
 
Dbms Useful PPT
Dbms Useful PPTDbms Useful PPT
Dbms Useful PPT
 
Dbms
DbmsDbms
Dbms
 
Database Concepts.ppt
Database Concepts.pptDatabase Concepts.ppt
Database Concepts.ppt
 
Dbms models
Dbms modelsDbms models
Dbms models
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Unit 2 rdbms study_material
Unit 2  rdbms study_materialUnit 2  rdbms study_material
Unit 2 rdbms study_material
 
Ena ch01
Ena ch01Ena ch01
Ena ch01
 
Database Management System.docx
Database Management System.docxDatabase Management System.docx
Database Management System.docx
 
Database & dbms
Database & dbmsDatabase & dbms
Database & dbms
 
Computer applications.pptx
Computer applications.pptxComputer applications.pptx
Computer applications.pptx
 
Introduction & history of dbms
Introduction & history of dbmsIntroduction & history of dbms
Introduction & history of dbms
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Introduction DBMS.pptx
Introduction DBMS.pptxIntroduction DBMS.pptx
Introduction DBMS.pptx
 
DBMS_UNIT_1.pdf
DBMS_UNIT_1.pdfDBMS_UNIT_1.pdf
DBMS_UNIT_1.pdf
 
DataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPTDataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPT
 
Database management system by Gursharan singh
Database management system by Gursharan singhDatabase management system by Gursharan singh
Database management system by Gursharan singh
 
chapter 1-Introduction Fundamentals of database system.pdf
chapter 1-Introduction Fundamentals of database system.pdfchapter 1-Introduction Fundamentals of database system.pdf
chapter 1-Introduction Fundamentals of database system.pdf
 

Dernier

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Dernier (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Chapter one

  • 1. Jimma University Institute of Technology School of computing Fundamentals of Database systems
  • 3. Chapter one Chapter Objectives At the end the chapter students should able to know:  The meaning of the term ‘database’.  The meaning of the term ‘database management system’ (DBMS).  Some common uses of database systems.  The characteristics of Database systems.  The problems with the file-based approach.  The typical functions of a DBMS.  The major components of the DBMS environment.  The history of the development of DBMSs.  The advantages and disadvantages of DBMSs.
  • 4. Definitions  Database is a collection of related data.  Data is a collection of facts and figures that can be processed to produce information.  Database Management System or DBMS  in short refers to the technology of storing and retrieving users’ data with utmost efficiency along with appropriate security measures.  A software package/ system to facilitate the creation and maintenance of a computerized database.  stores data in such a way that it becomes easier to retrieve, manipulate, and produce information.
  • 5.  Database System:  The DBMS software together with the data itself. Sometimes, the applications are also included.
  • 6. Simplified database system environment . Figure 1.1. Simplified database system environment
  • 7. Characteristics- DBMS was a new concept then, and all the research was done to make it overcome the deficiencies in traditional style of data management. 1. Real-world entity − A modern DBMS is more realistic and uses real-world entities to design its architecture.  It uses the behavior and attributes too.  For example, a school database may use students as an entity and their age as an attribute. 2. Relation-based tables − DBMS allows entities and relations among them to form tables. A user can understand the architecture of a database just by looking at the table names.
  • 8. 3. Isolation of data and application − A database system is entirely different than its data. A database is an active entity, whereas data is said to be passive, on which the database works and organizes. DBMS also stores metadata, which is data about data, to ease its own process. 4. Less redundancy − DBMS follows the rules of normalization, which splits a relation when any of its attributes is having redundancy in values. Normalization is a mathematically rich and scientific process that reduces data redundancy.
  • 9. 5. Consistency− Consistency is a state where every relation in a database remains consistent. There exist methods and techniques, which can detect attempt of leaving database in inconsistent state. A DBMS can provide greater consistency as compared to earlier forms of data storing applications like file-processing systems. 6. Query Language − DBMS is equipped with query language, which makes it more efficient to retrieve and manipulate data. A user can apply as many and as different filtering options as required to retrieve a set of data. Traditionally it was not possible where file-processing system was used.
  • 10. 8. ACID Properties − DBMS follows the concepts of Atomicity, Consistency, Isolation, and Durability (normally shortened as ACID). These concepts are applied on transactions, which manipulate data in a database.  Atomicity − is, either all of its operations are executed or none.  Consistency − No transaction should have any adverse effect on the data residing in the database.  Isolation − No transaction will affect the existence of any other transaction.  Durability − The database should be durable enough to hold all its latest updates even if the system fails or restarts.
  • 11. 9. Multiuser and Concurrent Access − DBMS supports multi-user environment and allows them to access and manipulate data in parallel. 10.Multiple views − DBMS offers multiple views for different users. A user who is in the Sales department will have a different view of database than a person working in the Production department. 11. Security − Features like multiple views offer security to some extent where users are unable to access data of other users and departments. DBMS offers many different levels of security features, which enables multiple users to have different views with different features.
  • 12. Typical DBMS Functionality  Define a particular database in terms of its data types, structures, and constraints  Construct or Load the initial database contents on a secondary storage medium  Manipulating the database:  Retrieval: Querying, generating reports  Modification: Insertions, deletions and updates to its content  Accessing the database through Web applications
  • 13. Cont… Processing and Sharing by a set of concurrent users and application programs –yet, keeping all data valid and consistent Other features:  Protection or Security measures to prevent unauthorized access  Active processing to take internal actions on data  Presentation and Visualization of data  Maintaining the database and associated programs over the lifetime of the database application Called database, software, and system maintenance
  • 14. Example of a Database (with a Conceptual Data Model) Example:  UNIVERSITY Database Some entities:  STUDENTs  COURSEs  SECTIONs (of COURSEs)  (academic) DEPARTMENTs  INSTRUCTORs
  • 15.  Some relationships:  SECTIONs are of specific COURSEs  STUDENTs take SECTIONs  COURSEs have prerequisite COURSEs  INSTRUCTORs teach SECTIONs  COURSEs are offered by DEPARTMENTs  STUDENTs major in DEPARTMENTs * Note: The above entities and relationships are typically expressed in a conceptual data model, such as the ENTITY- RELATIONSHIP data model.
  • 16. File-based System: 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. Traditionally, data was organized in file formats. Disadvantage  Separation and isolation of data  Duplication of data and inconsistency  Data dependence  Incompatible file formats  Fixed queries/proliferation of application programs  Difficulty in accessing data  Integrity problems  Atomicity problems  Concurrent-access anomalies  Security problems
  • 17.  What is table?  The data in DBMS is stored in database objects called tables.  The table is a collection of related data entries and it consists of columns and rows.
  • 18.  What is field?  Every table is broken up into smaller entities called fields. The fields in the CUSTOMERS table consist of ID, NAME, AGE, ADDRESS and SALARY. A field is a column in a table that is designed to maintain specific information about every record in the table.  What is record or row? A record, also called a row of data, is each individual entry that exists in a table A record is a horizontal entity in a table.
  • 19. What is column?  A column is a vertical entity in a table that contains all information associated with a specific field in a table.  For example, a column in the CUSTOMERS table is ADDRESS, which represents location description and would consist of the following:
  • 20. Users A typical DBMS has users with different rights and permissions who use it for different purposes. Some users retrieve data and some back it up.  The users of a DBMS can be broadly categorized as follows −
  • 21. I. Administrators − Administrators maintain the DBMS and are responsible for administrating the database.  responsible to look after its usage and by whom it should be used.  Can create access profiles for users and apply limitations to maintain isolation and force security.  Look after DBMS resources like system license, required tools, and other software and hardware related maintenance. II. Designers − are the group of people who actually work on the designing part of the database.  Keep a close watch on what data should be kept and in what format.  Identify and design the whole set of entities, relations, constraints, and views.
  • 22. III.End Users − End users are those who actually reap the benefits of having a DBMS.  End users can range from simple viewers who pay attention to the logs or market rates to sophisticated users such as business analysts.  Categories of End-users  Casual: access database occasionally when needed  Naïve or Parametric: they make up a large section of the end-user population.  They use previously well-defined functions in the form of “canned transactions” against the database.  Examples are bank-tellers or reservation clerks who do this activity for an entire shift of operations.
  • 23.  Sophisticated:  These include business analysts, scientists, engineers, others thoroughly familiar with the system capabilities.  Many use tools in the form of software packages that work closely with the stored database.  Stand-alone:  Mostly maintain personal databases using ready-to-use packaged applications.  An example is a tax program user that creates its own internal database.  Another example is maintaining an address book
  • 24. Historical Development of Database Technology  Early Database Applications:  The Hierarchical and Network Models were introduced in mid 1960s and dominated during the seventies.  A bulk of the worldwide database processing still occurs using these models.  Relational Model based Systems:  Relational model was originally introduced in 1970, was heavily researched and experimented with in IBM Research and several universities.  Relational DBMS Products emerged in the 1980s.
  • 25. Historical Development of Database Technology  Object-oriented and emerging applications:  Object-Oriented Database Management Systems (OODBMSs) were introduced in late 1980s and early 1990s to cater to the need of complex data processing in CAD and other applications.  Their use has not taken off much.  Many relational DBMSs have incorporated object database concepts, leading to a new category called object-relational DBMSs (ORDBMSs)  Extended relational systems add further capabilities (e.g. for multimedia data, XML, and other data types)
  • 26. Historical Development of Database Technology  Data on the Web and E-commerce Applications:  Web contains data in HTML (Hypertext markup language) with links among pages.  This has given rise to a new set of applications and E- commerce is using new standards like XML (extended Markup Language).  Script programming languages such as PHP and JavaScript allow generation of dynamic Web pages that are partially generated from a database  Also allow database updates through Web pages
  • 27. Applications  Traditional Applications:  Numeric and Textual Databases  More Recent Applications:  Multimedia Databases  Geographic Information Systems (GIS)  Data Warehouses  Real-time and Active Databases  Many other applications
  • 28. a) BANKING: For customer ,information, account, loans, and transaction. b) Airline: For reservation and schedule information. Airline were among the first to use database in a geographically distributed manner terminals situated around the world accessed the central database system through phone lines and other data network. c) Universities: For students information, course registration, and grades. d) Credits card transaction: For purchases on credits cards and generation of monthly statements. e) Sales: For customer, product, and purchase information. f) Human resources: For information about employees, salaries, payroll taxes and benefits, and for generation of paychecks.
  • 29. When not to use a DBMS  Main inhibitors (costs) of using a DBMS:  High initial investment and possible need for additional hardware.  Overhead for providing generality, security, concurrency control, recovery, and integrity functions.  When a DBMS may be unnecessary:  If the database and applications are simple, well defined, and not expected to change.  If there are stringent real-time requirements that may not be met because of DBMS overhead.  If access to data by multiple users is not required.
  • 30. When not to use a DBMS  When no DBMS may suffice:  If the database system is not able to handle the complexity of data because of modeling limitations  If the database users need special operations not supported by the DBMS.
  • 31. Summary Types of Databases and Database Applications Basic Definitions Typical DBMS Functionality Example of a Database (UNIVERSITY) Main Characteristics of the Database Database Users Advantages of Using the Database Approach When Not to Use Databases