SlideShare a Scribd company logo
Introduction to Database Concepts
Ucc - Mwanza.
May 2006
Database Definition
A database can be defined as collection
of information organized in such a way
that it can be accessed easily.
Examples are
 Tracking customer orders
 Maintaining Employees Records.
 Maintaining Students Information
Terminologies
In studying Databases the following Terminologies
must be clear
Data
 This is the fact or facts about specific entity (person, place or thing).
Information
 This is the processed facts perceived to be useful by the user.
Field
 This is a single item of information or data in entity. E.g. employee
Name
Record
 This can be defined as data or group of fields about an
entity. E.g. employee particulars 
Subject (relation or table)
 This can be defined as a collection of records that are related
to a particular entity. For example, Records for all employees
will make up one subject.
History of Databases
Manual systems
File Processing Systems (FPS)
Database Management systems
(DBMS)
Manual systems
Structure
Information can be stored in dedicated room or in separate offices.
Room or office will be furnished with shelves;
Different shelves will hold Records for different subjects.
Records will be stored in hard flat files, each file will carry one record
Each file will have a specific number to identify it.
A person will use the file number to retrieve the specific file (record).
Manual systems
User
File keeper
Files Cabinet
File Processing Systems (FPS)
Information stored as groups of records in separate
files
File processing systems consisted of a few data files
and many application programs
Each file called a soft flat file
Flat file contain processed information for one specific
function
Use of programming languages to write applications
Little flexibility
High maintenance
Many limitations
Database concepts
Limitations of File Processing Systems
Separate and isolated data
Data redundancy
Program - data interdependence
involving file formats and access
techniques
Difficulty in representing data from the
user’s view
Data inflexibility
Database Management systems (DBMS)
A program that allows users to define, create, manipulate,
store, maintain, retrieve, and process the data in a
database in order to produce meaningful information.
Focus on information representation
Data stored as records in various database files that can
be combined to produce meaningful information for users
DBMS controls all functions of capturing, processing,
storing, retrieving data and generates various forms of
data output
Manages access by multiple users and multiple programs
to a common store of data
Database concepts
DBMS overcomes all Limitations of FPS.
Eliminates separation and isolation of data
Reduces data redundancy
Eliminates dependence between programs
and data
Allows for representation of data from user’s
view
Increases data flexibility
Superior flexibility and security over
spreadsheet applications
Characteristics of a DBMS
 Computerized record-keeping system
 Contains facilities that allow the user to:
o Add, delete files
o Insert, retrieve, update, delete data
 Collection of databases; each can be
used for separate purposes or
combined
Functions and Uses of a DBMS
To store data
To organize data
To control access to data
To protect data
To provide decision support
To provide transaction processing
Advantages and Disadvantages of a DBMS
• Advantages:
 Centralized data reduces management problems
 Data redundancy and consistency are controllable
 Program - data interdependency is diminished
 Flexibility of data is increased
• Disadvantages:
 Reduction in speed of data access time
 Requires special knowledge
 Possible dependency of application programs to specific
DBMS versions
Database Administrator
A database administrator (DBA) controls and
manages the database.
Function of a DBA
Make decisions concerning the content of the
database
Plan storage structures and access strategies.
Provides support to users
Defines security and integrity checks
Interprets backup and recovery strategies.
Types of Databases
Flat Databases
Hierarchical Database
Network Database
Relational Database
Flat databases
A single kind of record with a fixed number
of fields.
a way of organizing all information in a
single table.
suitable for extremely simple
databases.
inherit data redundancy
Flat databases
Hierarchical Database
Fields or records structured in nodes
Viewed as branches of an upside-down tree
Each item is subordinate to its parent node
Only one parent per node
The subordinate item is the child node to the parent
If parent node is deleted, all the child nodes are as well
deleted
New parent node must be created before adding a new child
node
Limited by rigid structure
No direct relationships between child nodes
Hierarchical Database
Network Database
Also has hierarchical node arrangement
But here child nodes may have more than
one parent node, or a many-to-many
relationship
The interconnected design allows for access
via multiple pathways
Network Database
Relational Database
No pre-determined access paths
Data stored in a collection of columns and
rows called a table, or a relation
Tables may be electronically linked via a
key field containing common data
Easy to add, delete and modify the data and
the table structures
Relational Database
Relational Terminologies
Table or Relation
Null values
Duplicate Values
Changeable Values
Primary Keys
Foreign Keys
Table or Relation
Table will store information for a
particular entity
Table name must be unique
 The Table name should be descriptive
Column Name must be unique within
the Table
Rows must be unique
Null values
missing or unknown value in a column
of a table
Nulls are not the same as zeros
Most arithmetic operations can be
performed on zero values
nulls must be excluded from
mathematical manipulations
Duplicate values
A duplicate value is a value in a column
of a table that exactly matches some
other values within the same column.
Changeable values
value in a table that may vary over time.
Most values in most tables are
Changeable
You can prevent changes when it is
desirable to prevent changes in a given
column of a table
Primary keys
Uniquely identify each row of that table.
Every table must have only one
Primary key
Rules for Primary key
Must always have a value (null values
are not allowed)
Value should be unique (duplicate
values are not allowed)
Value should not change over time
Foreign keys
key which relates the rows of the Table
to other Tables
value can be null,
value can change
value can be duplicated
Rule for Foreign keys
Value must refer to the existing primary
key.

More Related Content

PPT
11 Database Concepts
PPTX
Database management system
PDF
File Processing System
PPTX
Database Basics
PPT
Database Presentation
PPTX
Introduction to database
PPTX
Disadvantages of file management system (file processing systems)
PPTX
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
11 Database Concepts
Database management system
File Processing System
Database Basics
Database Presentation
Introduction to database
Disadvantages of file management system (file processing systems)
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary

What's hot (20)

PPTX
Relational Database Management System
PPTX
Basic Concept of Database
POTX
PPTX
PPTX
DBMS introduction
PPTX
File system vs database
PPTX
Abap data dictionary
PPT
Data independence
PPTX
old file system/traditional file sysytem
PPTX
Types of databases
PDF
Database management systems
PPT
overview of database concept
PDF
Introduction to Database
PPT
08 sip database
PPTX
DATABASE PRESENTATION
DOC
rdbms-notes
PDF
Database management system
PPTX
File system vs DBMS
PPTX
Key database terms
PPT
computer fund-database presentation
Relational Database Management System
Basic Concept of Database
DBMS introduction
File system vs database
Abap data dictionary
Data independence
old file system/traditional file sysytem
Types of databases
Database management systems
overview of database concept
Introduction to Database
08 sip database
DATABASE PRESENTATION
rdbms-notes
Database management system
File system vs DBMS
Key database terms
computer fund-database presentation
Ad

Viewers also liked (13)

PDF
User Manual Joomla2006
PDF
Test Tech 2011 Overview
PPT
Presentation latin american_librarians
PPTX
Relational Database Access with Python ‘sans’ ORM
PPTX
Lesson Two Exploring An Access Database
PPT
MS Access Training
DOC
Sample training manual
PDF
Heightworks IRATA Training Manual Version 2 - Rope Access Training Manual
PPTX
Database security
PPTX
Database security
KEY
Farmeron
PPT
Database Security
PDF
Best practice strategies to clean up and maintain your database with Hether G...
User Manual Joomla2006
Test Tech 2011 Overview
Presentation latin american_librarians
Relational Database Access with Python ‘sans’ ORM
Lesson Two Exploring An Access Database
MS Access Training
Sample training manual
Heightworks IRATA Training Manual Version 2 - Rope Access Training Manual
Database security
Database security
Farmeron
Database Security
Best practice strategies to clean up and maintain your database with Hether G...
Ad

Similar to Database concepts (20)

PDF
Database_Concepts_Final.pptx.pdf for class 12
PDF
03-database-management-system-revision-notes.pdf
PPT
Introduction to Database (Lecture 1).ppt
PPTX
Database Management System Part-1.pptx
PPTX
Dbms mca-section a
PPTX
database concepts.pptx
PPTX
data and information
PPTX
LEARNING OBJECTIVES education relational.pptx
PDF
Ch-1-Introduction-to-Database.pdf
PPTX
DBMS. ................................................
PPTX
database management.............................................................
PPT
Basics of Database Management System: Key Components
PPTX
Database management system
PPTX
Data base management system
PDF
database1.pdf
PPTX
Organisation of database vs Organisation of database
PPTX
Database management system
PPTX
DATABASE SYSTEMS VS ROUTINE FILE SYSTEMS
PPTX
PPT
Dbms
Database_Concepts_Final.pptx.pdf for class 12
03-database-management-system-revision-notes.pdf
Introduction to Database (Lecture 1).ppt
Database Management System Part-1.pptx
Dbms mca-section a
database concepts.pptx
data and information
LEARNING OBJECTIVES education relational.pptx
Ch-1-Introduction-to-Database.pdf
DBMS. ................................................
database management.............................................................
Basics of Database Management System: Key Components
Database management system
Data base management system
database1.pdf
Organisation of database vs Organisation of database
Database management system
DATABASE SYSTEMS VS ROUTINE FILE SYSTEMS
Dbms

More from FLYMAN TECHNOLOGY LIMITED (20)

PPTX
Flyman Technology Limited Introduction Presentation
PDF
Flyman Technology Limited (Mzumbe University Tanzania)
PDF
Flyman Technology Limited Tanzania
PPTX
Saadani national park 2015
PDF
Uuzaji wa mazao ya kuku wa asili
PDF
Entrepreneurship manual BIT
PPT
Security chapter6
PPT
introduction to the document object model- Dom chapter5
PPT
PPT
internet intranet and extranet
PPT
introduction to web application development
PPTX
Marketing management
PPTX
Marketing communications
PPT
Marketing analysis
PPTX
Market segmentation
PPT
Consumer markets
PDF
ENTREPRENEURSHIP MANUAL
PPTX
THINGS NOT TO DO IN A JOB INTERVIEW!
PPT
TAXATION CONCEPTS
PDF
Flyman Technology Limited Introduction Presentation
Flyman Technology Limited (Mzumbe University Tanzania)
Flyman Technology Limited Tanzania
Saadani national park 2015
Uuzaji wa mazao ya kuku wa asili
Entrepreneurship manual BIT
Security chapter6
introduction to the document object model- Dom chapter5
internet intranet and extranet
introduction to web application development
Marketing management
Marketing communications
Marketing analysis
Market segmentation
Consumer markets
ENTREPRENEURSHIP MANUAL
THINGS NOT TO DO IN A JOB INTERVIEW!
TAXATION CONCEPTS

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
Teaching material agriculture food technology
PDF
Approach and Philosophy of On baking technology
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
cuic standard and advanced reporting.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Cloud computing and distributed systems.
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
NewMind AI Weekly Chronicles - August'25 Week I
Teaching material agriculture food technology
Approach and Philosophy of On baking technology
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Digital-Transformation-Roadmap-for-Companies.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
cuic standard and advanced reporting.pdf
The AUB Centre for AI in Media Proposal.docx
Big Data Technologies - Introduction.pptx
Programs and apps: productivity, graphics, security and other tools
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
Per capita expenditure prediction using model stacking based on satellite ima...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Cloud computing and distributed systems.
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Understanding_Digital_Forensics_Presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
20250228 LYD VKU AI Blended-Learning.pptx

Database concepts

  • 1. Introduction to Database Concepts Ucc - Mwanza. May 2006
  • 2. Database Definition A database can be defined as collection of information organized in such a way that it can be accessed easily. Examples are  Tracking customer orders  Maintaining Employees Records.  Maintaining Students Information
  • 3. Terminologies In studying Databases the following Terminologies must be clear Data  This is the fact or facts about specific entity (person, place or thing). Information  This is the processed facts perceived to be useful by the user. Field  This is a single item of information or data in entity. E.g. employee Name Record  This can be defined as data or group of fields about an entity. E.g. employee particulars  Subject (relation or table)  This can be defined as a collection of records that are related to a particular entity. For example, Records for all employees will make up one subject.
  • 4. History of Databases Manual systems File Processing Systems (FPS) Database Management systems (DBMS)
  • 5. Manual systems Structure Information can be stored in dedicated room or in separate offices. Room or office will be furnished with shelves; Different shelves will hold Records for different subjects. Records will be stored in hard flat files, each file will carry one record Each file will have a specific number to identify it. A person will use the file number to retrieve the specific file (record).
  • 7. File Processing Systems (FPS) Information stored as groups of records in separate files File processing systems consisted of a few data files and many application programs Each file called a soft flat file Flat file contain processed information for one specific function Use of programming languages to write applications Little flexibility High maintenance Many limitations
  • 9. Limitations of File Processing Systems Separate and isolated data Data redundancy Program - data interdependence involving file formats and access techniques Difficulty in representing data from the user’s view Data inflexibility
  • 10. Database Management systems (DBMS) A program that allows users to define, create, manipulate, store, maintain, retrieve, and process the data in a database in order to produce meaningful information. Focus on information representation Data stored as records in various database files that can be combined to produce meaningful information for users DBMS controls all functions of capturing, processing, storing, retrieving data and generates various forms of data output Manages access by multiple users and multiple programs to a common store of data
  • 12. DBMS overcomes all Limitations of FPS. Eliminates separation and isolation of data Reduces data redundancy Eliminates dependence between programs and data Allows for representation of data from user’s view Increases data flexibility Superior flexibility and security over spreadsheet applications
  • 13. Characteristics of a DBMS  Computerized record-keeping system  Contains facilities that allow the user to: o Add, delete files o Insert, retrieve, update, delete data  Collection of databases; each can be used for separate purposes or combined
  • 14. Functions and Uses of a DBMS To store data To organize data To control access to data To protect data To provide decision support To provide transaction processing
  • 15. Advantages and Disadvantages of a DBMS • Advantages:  Centralized data reduces management problems  Data redundancy and consistency are controllable  Program - data interdependency is diminished  Flexibility of data is increased • Disadvantages:  Reduction in speed of data access time  Requires special knowledge  Possible dependency of application programs to specific DBMS versions
  • 16. Database Administrator A database administrator (DBA) controls and manages the database. Function of a DBA Make decisions concerning the content of the database Plan storage structures and access strategies. Provides support to users Defines security and integrity checks Interprets backup and recovery strategies.
  • 17. Types of Databases Flat Databases Hierarchical Database Network Database Relational Database
  • 18. Flat databases A single kind of record with a fixed number of fields. a way of organizing all information in a single table. suitable for extremely simple databases. inherit data redundancy
  • 20. Hierarchical Database Fields or records structured in nodes Viewed as branches of an upside-down tree Each item is subordinate to its parent node Only one parent per node The subordinate item is the child node to the parent If parent node is deleted, all the child nodes are as well deleted New parent node must be created before adding a new child node Limited by rigid structure No direct relationships between child nodes
  • 22. Network Database Also has hierarchical node arrangement But here child nodes may have more than one parent node, or a many-to-many relationship The interconnected design allows for access via multiple pathways
  • 24. Relational Database No pre-determined access paths Data stored in a collection of columns and rows called a table, or a relation Tables may be electronically linked via a key field containing common data Easy to add, delete and modify the data and the table structures
  • 26. Relational Terminologies Table or Relation Null values Duplicate Values Changeable Values Primary Keys Foreign Keys
  • 27. Table or Relation Table will store information for a particular entity Table name must be unique  The Table name should be descriptive Column Name must be unique within the Table Rows must be unique
  • 28. Null values missing or unknown value in a column of a table Nulls are not the same as zeros Most arithmetic operations can be performed on zero values nulls must be excluded from mathematical manipulations
  • 29. Duplicate values A duplicate value is a value in a column of a table that exactly matches some other values within the same column.
  • 30. Changeable values value in a table that may vary over time. Most values in most tables are Changeable You can prevent changes when it is desirable to prevent changes in a given column of a table
  • 31. Primary keys Uniquely identify each row of that table. Every table must have only one Primary key
  • 32. Rules for Primary key Must always have a value (null values are not allowed) Value should be unique (duplicate values are not allowed) Value should not change over time
  • 33. Foreign keys key which relates the rows of the Table to other Tables value can be null, value can change value can be duplicated
  • 34. Rule for Foreign keys Value must refer to the existing primary key.