SlideShare a Scribd company logo
Data Resource Management and
DSS
Database
• Database is a collection of logically related data that are
organized in a way to facilitate easy accessing and processing
of data.
• DATABASE : A collection of data is referred to as database.
• e.g. 1. record of students stored in files
• 2. information stored over internet
•
• DATABASE MANAGEMENT SYSTEM: It is basically a
computer based record keeping system (program).
• e.g. MySQL
• Microsoft Access
• FileMaker
• FoxPro
DATABASE MANAGEMENT SYSTEMS
BASIC CONCEPTS
1. What is a database?
A database is a collection of data which can be used:
• alone, or
• combined / related to other data
to provide answers to the user’s question.
Fundamental Data Concept
• Character: Single alphabetic, numeric, other
symbol
• Field: Column, grouping of Character
• Record: Logical grouping of field attribute
• File(table): a group of related record
• Database: integrated collection of logically
related data element
What Is a DBMS?
• A very large, integrated collection of data.
• Models real-world enterprise.
▫ Entities (e.g., students, courses)
▫ Relationships (e.g., Kritika is taking MIS564)
• A Database Management System (DBMS) is
a software package designed to store and
manage databases.
Contd…
• Character: Basic Logical element which consists of single
alphabet, numeric, symbol.
• Field: Next higher level of data is the field or data item. A field
consists of group of related characters. For example age
• Record: The fields required to describe the attributes of an
entity are grouped to form a record. Record represents a
collection of attributes that describes a single instance of an
entity
• File: A group of related records is a data file. If its
independent of any other files related to it, a single table may
be referred to as a flat file.
• Database: It is an integrated collection of logically related data
elements. A database consolidates records previously stored
in separate files into a common pool of data elements that
provides data for many application.
Data resource management and DSS
Database Systems: Then
Database Systems: Today
From Friendster.com on-lin
Other Ways Databases Make Life Better?
• “Players could finally
sign up for the Star
Wars Galaxies game
last week as Sony
opened up registration
to the public.”
• “Once players got in to
the game they found
that the game servers
were offline because of database problems.”
• “Some players spent hours tuning their in-
game characters only to find that crashes
deleted all their hard work.”
• Source: BBC News Online, July 1, 2003.
Other databases you may use
Purpose of database :
1. It reduces DATA REDUNDANCY to a large extent.
2. It controls DATA INCONSISTENCY.
3. It facilitate SHARING of data.
4. It ensures DATA SECURITY.
Name D.O.B Fees
Harsh 23/01/1993 Not paid
Amar 04/11/1994 Paid
Devendra 14/06/199
2
Not paid
Harsh 23/01/1993 Not paid
Name D.O.B Fees
Harsh 23/01/199
3
Paid
Amar 04/11/199
4
Paid
Devendra 14/06/199
2
Paid
Harsh 23/01/199
3
Not paid
Data Redundancy Data Inconsistency
DATABASE MANAGEMENT SYSTEMS
2. What is a Database Management System?
A DBMS is a collection of programs which
• provide management of databases
• control access to data
• contain a query language to retrieve information easily
3. Database Design
It is important to design the database in such a way that:
• A specific item can be reached easily
(maximum guarantee that the desired record will be
reached)
• The database can respond to the user’s
different questions easily
(necessary relationships are provided)
DATABASE MANAGEMENT SYSTEMS
•The database occupies minimum storage space
(choosing data types and how to express a certain
concept is important)
•The database contains no unnecessary data
(storing the gross salary is enough, the net salary
can be calculated from the gross salary)
• Data can be added and updated easily
without causing mistakes
(no data redundancy)
DATABASE MANAGEMENT SYSTEMS
Data redundancy
Different and conflicting versions of the same data
e.g. Employee database:
personal info payroll
- ID - ID (relating parameter)
- name - name (causes redundancy)
- address - gross salary
DATABASE MANAGEMENT SYSTEMS
STEPS IN DATABASE DESIGN
• Requirement analysis
What does the user want?
• Conceptual database design
Defining the entities and attributes, and the
relationships between these --> The ER model
• Physical database design
Implementation of the conceptual design using a
Database Management System
DATABASE MANAGEMENT SYSTEMS
TERMINOLOGY
• Entity --> What is this table about? students
• Attribute (Field) --> What items of information are
necessary to keep concerning this entity?
ID, name, department, year, advisor
• Record (Tuple) --> A set of values for each attribute for
one item
20027654 Anil PM 30 Nepal
DATABASE MANAGEMENT SYSTEMS
• Key --> The attribute used to define a required item
who is the of PM?
Types of keys:
* Primary Key: Key used to uniquely identify a record
* Foreign Key: A field in this table which is the Primary
key of another table
• Relationship --> Definitions linking two or more tables
DATABASE MANAGEMENT SYSTEMS
Why Use a DBMS?
• Data independence and efficient access.
• Reduced application development time.
• Data integrity and security.
• Uniform data administration.
• simultaneous access, recovery from crashes.
Why Study Databases??
• Shift from computation to information
▫ at the “low end”: mix up to webspace (a mess!)
▫ at the “high end”: scientific applications
• Datasets increasing in diversity and volume.
▫ Digital libraries, interactive video
• DBMS encompasses most of CS
▫ OS, languages, theory, multimedia, logic
?
Levels of Abstraction
• Many views, single
conceptual (logical)
schema and physical
schema.
▫ Views describe how users
see the data.
▫ Conceptual schema defines
logical structure
▫ Physical schema describes
the files and indexes used.
Physical Schema
Conceptual Schema
View 1 View 2 View 3
Various levels of database implementation (concept of
abstraction)
1. INTERNAL LEVEL (PHYSICAL LEVEL):
It describes how data are actually stored on the storage
medium.
It is closest to database programmer.
Lowest level of database abstraction.
2. CONCEPTUAL LEVEL:
It describes what data are actually stored in database.
It is closest to the database manager.
It is an intermediate level of database abstraction.
3. EXTERNAL LEVEL (VIEW LEVEL):
It describes the way in which the data are viewed by individual
user.
Three levels of data abstraction
View 1 View 2 View 3
Conceptual
level
Physical
level
External level
Internal
Stored-acc. length=60
Account # type=bytes(15) offset=0
Name type=bytes(20)
offset=15
Type type=bytes(10)
offset=35
Amount type=bytes(15)
offset=45
Conceptual
AC_No numeric(15)
AC_Name character(20)
Type character(10)
Amount numeric(15)
View 1
AC_Name
Amount
View 2
AC_No
AC_Name
Type
Amount
Account holder Manager
(DBMS Programmer)
Database
handler
User
Example: University Database Conceptual schema:
 Students(sid: string, name: string, login: string,
age: integer, gpa:real)
 Courses(cid: string, cname:string, credits:integer)
 Enrolled(sid:string, cid:string, grade:string)
 Physical schema:
 Relations stored as unordered files.
 Index on first column of Students.
 External Schema (View):
 Course_info(cid:string,enrollment:integer)
Class Discussion
• Explain the different characteristics and benefits
of DBMS
Data Independence *
• Data independence is the type of data transparency
that matters for a centralised DBMS. It refers to the
immunity of user applications to changes made in the
definition and organization of data. Physical data
independence deals with hiding the details of the
storage structure from user applications.
• Applications insulated from how data is structured and
stored.
• Logical data independence: Protection from changes in
logical structure of data.
• Physical data independence: Protection from changes
in physical structure of data.
* One of the most important benefits of using a DBMS!
Concurrency Control
 Concurrent execution of user programs is essential
for good DBMS performance.
 Because disk accesses are frequent, and relatively
slow, it is important to keep the CPU humming by
working on several user programs concurrently.
 Interleaving actions of different user programs can
lead to inconsistency: e.g., check is cleared while
account balance is being computed.
 DBMS ensures such problems don’t arise: users can
pretend they are using a single-user system.
Structure of a DBMS
• A typical DBMS has a
layered architecture.
• The figure does not
show the concurrency
control and recovery
components.
• This is one of several
possible architectures;
each system has its own
variations.
Query Optimization
and Execution
Relational Operators
Files and Access Methods
Buffer Management
Disk Space Management
DB
DBMS
Types of DBMS
Types of Databases
•Hierarchical database
•Network database
•Relational database
•Object-oriented database
HIERARCHICAL DATABASE
• A DBMS is said to be hierarchical if the relationships
among data in the database are established in such a
way that one data item is present as the subordinate
of another one.
• Here subordinate means that items have 'parent-child'
relationships among them. Direct relationships exist
between any two records that are stored consecutively.
The data structure "tree" is followed by the DBMS to
structure the database. No backward movement is
possible/allowed in the hierarchical database.
Data resource management and DSS
• Advantage
Hierarchical database can be accessed and updated rapidly
because in this model structure is like as a tree and the
relationships between records are defined in advance. This
feature is a two-edged.
• Disadvantage
This type of database structure is that each child in the tree
may have only one parent, and relationships or linkages
between children are not permitted, even if they make sense
from a logical standpoint. Hierarchical databases are so in
their design. it can adding a new field or record requires that
the entire database be redefined.
NETWORK DATABASE
• A DBMS is said to be a Network DBMS if the
relationships among data in the database are of
type many-to-many.
• The relationships among many-to-many appears in
the form of a network. Thus the structure of
a network database is extremely complicated because
of these many-to-many relationships in which one
record can be used as a key of the entire database. A
network database is structured in the form of a graph
that is also a data structure.
Data resource management and DSS
RELATIONAL DATABASE
• A DBMS is said to be a Relational DBMS or RDBMS if
the database relationships are treated in the form of a
table. there are three keys on relational DBMS 1)relation
2)domain 3)attributes.
• A network means it contains fundamentel constructs
sets or records.sets contains one to many
relationship,records contains fields statical table that is
composed of rows and columns is used to organize the
database and its structure and is actually a two
dimension array in the computer memory. A number of
RDBMSs are available, some popular examples are
Oracle, Sybase, Ingress,Informix, Microsoft SQL
Server, and Microsoft Access.
Data resource management and DSS
OBJECT-ORIENTED DATABASE
• Object-oriented databases use small, reusable chunks of
software called objects. The objects themselves are stored
in the object-oriented database. Each object consists of two
elements: 1) a piece of data (e.g., sound, video, text, or
graphics), and 2) the instructions, or software programs
called methods, for what to do with the data.
• Object-oriented databases have two disadvantages. First,
they are more costly to develop. Second, most
organizations are reluctant to abandon or convert from
those databases that they have already invested money in
developing and implementing. However, the benefits to
object-oriented databases are compelling. The ability to
mix and match reusable objects provides incredible
multimedia capability.
Data resource management and DSS
DATA WAREHOUSE
AND
DATA MINING
Which are our
lowest/highest margin
customers ?
Who are my customers
and what products
are they buying?
Which customers
are most likely to go
to the competition ?
What impact will
new products/services
have on revenue
and margins?
What product prom-
-otions have the biggest
impact on revenue?
What is the most
effective distribution
channel?
A PRODUCER WANTS TO KNOW….
DATA, DATA EVERYWHERE
YET ...
 I can’t get the data I need
 need an expert to get the data
 I can’t understand the data I found
 available data poorly documented
 I can’t use the data I found
 results are unexpected
 data needs to be transformed from
one form to other
 I can’t find the data I need
 data is scattered over the network
 many versions, subtle differences
Evolution of Database Technology
• 1960s:
▫ Data collection, database creation, IMS and network
DBMS
• 1970s:
▫ Relational data model, relational DBMS implementation
• 1980s:
▫ RDBMS, advanced data models (extended-relational,
OO, deductive, etc.) and application-oriented DBMS
(spatial, scientific, engineering, etc.)
• 1990s—2000s:
▫ Data mining and data warehousing, multimedia
databases, and Web databases
44
DATA WAREHOUSE
The data warehouse is that portion of an overall
Architected Data Environment that serves as the
single integrated source of data for processing
information.
CHARACTERISTICS
DATA
WAREHOUSE
Subject
Oriented
Integrated
Non
Volatile
Time
variant
Accessible
Process
Oriented
TERMS RELATED
TO DATA WAREHOUSE
DATA MART
STAGING AREA
OLAP
OLAP TOOLS
Data
Acquisition
Warehouse
Design
Analytical
Data Store
Enterprise
Warehouse
Data Marts
Metadata
Directory
Metadata
Repository
DATA
MANAGEMENT
METADATA
MANAGEMENT
Data
Analysis
Web
Information
Systems
Operational,
External &
other
Databases
COMPONENTS OF
DATAWAREHOUSE SYSTEM
HOW IS THE WAREHOUSE
DIFFERENT?
The data warehouse is distinctly different from
the operational data used and maintained by day-
to-day operational systems. Data warehousing is
not simply an “access wrapper” for operational
data, where data is simply “dumped” into tables
for direct access.
OPERATIONAL DATA
Application oriented
Detailed
Accurate, as of the moment
of access
Serves the clerical
community
Performance sensitive
(immediate response required
when entering a transaction)
Flexible structure; variable
contents
Small amount of data used in
a process
DATA WAREHOUSE
Subject oriented
Summarized
Represents values over time
Serves the managerial
community
Performance relaxed
(immediacy not required)
Static structure
large amount of data used in
a process
• Evolution in organizational use of data warehouses
Organizations generally start off with relatively simple use of data
warehousing. Over time, more sophisticated use of data warehousing
evolves.
The following general stages of use of the data warehouse can be
distinguished:
• Off line Operational Database
Data warehouses in this initial stage are developed by simply copying the
data off an operational system to another server where the processing load
of reporting against the copied data does not impact the operational system's
performance.
• Off line DataWarehouse
Data warehouses at this stage are updated from data in the operational
systems on a regular basis and the data warehouse data is stored in a data
structure designed to facilitate reporting.
• Real Time Data Warehouse
–Data warehouses at this stage are updated
every time an operational system performs a
transaction (e.g. an order or a delivery or a
booking.)
• Integrated DataWarehouse
– Data warehouses at this stage are updated every
time an operational system performs a
transaction. The data warehouses then generate
transactions that are passed back into the
operational systems.
Methods of Minimizing Non-sampling Errors
• Checking the sampling process
• Preparation of questionnaire
• Pilot survey
• Fix procedures
• Use of competent manpower
• Provide information
• Provide training
• Use of experts
• Checking data processing and analysis

More Related Content

PDF
Information System & Business applications
PPTX
Business Application (MIS)
PPTX
Functional applications of information system
PPT
data resource management
PPTX
Types of databases
PDF
Challenges of E-commerce
PPTX
Computer applications in buiseness
PPTX
Information Resource Management
Information System & Business applications
Business Application (MIS)
Functional applications of information system
data resource management
Types of databases
Challenges of E-commerce
Computer applications in buiseness
Information Resource Management

What's hot (20)

PDF
Infrastructure of E- commerce and Issues of e-commerce infrastructure
PPTX
Data resource management
PPTX
Web server hardware and software
PPTX
Telecommunication and network
PPTX
Management information system ( MIS )
PPTX
Presentation - Electronic Data Interchange
PPTX
Mis model
PPTX
Business information system with explaination
PPTX
Transaction processing system
PPT
Database Management system
PPTX
Internet, intranet and extranet
PPT
Management Information System - MIS - Application
PPTX
e-Eommerce - Framework
PPT
MIS-CH11: Managing Knowledge
PDF
Launching a successful online business
PPTX
Implementation of dbms
PPT
MIS-CH6: Foundation of BUsiness Intelligence: Databases & IS
PPTX
Computer networking and E-commerce
PDF
Network Infrastructure for E-commerce | Part I
PPTX
Foundation Of Information System
Infrastructure of E- commerce and Issues of e-commerce infrastructure
Data resource management
Web server hardware and software
Telecommunication and network
Management information system ( MIS )
Presentation - Electronic Data Interchange
Mis model
Business information system with explaination
Transaction processing system
Database Management system
Internet, intranet and extranet
Management Information System - MIS - Application
e-Eommerce - Framework
MIS-CH11: Managing Knowledge
Launching a successful online business
Implementation of dbms
MIS-CH6: Foundation of BUsiness Intelligence: Databases & IS
Computer networking and E-commerce
Network Infrastructure for E-commerce | Part I
Foundation Of Information System
Ad

Similar to Data resource management and DSS (20)

PPTX
Ch 2-introduction to dbms
PPT
Database management system lecture notes
PDF
UNIT machine learning unit 1,algorithm pdf
PPTX
DBMS.pptx
PPTX
PPTX
01-database-management.pptx
PPT
Introduction of database management system
PPTX
DBMS-Introduction Presented by Students on DBMS
PPTX
Chapter 4 Chapter Relational DB - Copy.pptx
PPT
Database management system basics and it applications
PDF
23246406 dbms-unit-1
PPTX
Unit 1_1680588168525885258552585525855.pptx
PPTX
DATABASE MANAGEMENT SYSTEMS CS 3492.pptx
PPTX
data base management sysytem a new apprach .pptx
PPTX
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
PPT
Lecture 1 =Unit 1 Part 1.ppt
PPTX
Database Management system intro.pptx
PPTX
REC-UNIT-I-DataBaseManagementSystems.pptx
PDF
Ch 2-introduction to dbms
Database management system lecture notes
UNIT machine learning unit 1,algorithm pdf
DBMS.pptx
01-database-management.pptx
Introduction of database management system
DBMS-Introduction Presented by Students on DBMS
Chapter 4 Chapter Relational DB - Copy.pptx
Database management system basics and it applications
23246406 dbms-unit-1
Unit 1_1680588168525885258552585525855.pptx
DATABASE MANAGEMENT SYSTEMS CS 3492.pptx
data base management sysytem a new apprach .pptx
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
Lecture 1 =Unit 1 Part 1.ppt
Database Management system intro.pptx
REC-UNIT-I-DataBaseManagementSystems.pptx
Ad

More from RajThakuri (20)

PPTX
Share Market.pptx
PDF
Statistical table
PDF
All Computer shortcuts for beginners....
PDF
Pdf. learn html.....html_course_(basic___advance_)_for_7_days
PPTX
Programming language
PPTX
Networking
PPTX
Software
PPTX
Operating system
PPT
Number system
PPTX
Output devices
PPT
Input devices
PPTX
Internet
PPTX
Computer memory & Memory Storage Devices.
PPT
Artificial inteligence
PPTX
Testing of hypotheses
PPTX
Formulas to measure_central_tendency_(mean,_median,_mode)
PPTX
Leadership, its styles_&_leadership_theories...
PPTX
Role of managerial_economics_in_business_decision_making
PPTX
Approaches of organizational_behavior
PPTX
Vivo v17 pro Review
Share Market.pptx
Statistical table
All Computer shortcuts for beginners....
Pdf. learn html.....html_course_(basic___advance_)_for_7_days
Programming language
Networking
Software
Operating system
Number system
Output devices
Input devices
Internet
Computer memory & Memory Storage Devices.
Artificial inteligence
Testing of hypotheses
Formulas to measure_central_tendency_(mean,_median,_mode)
Leadership, its styles_&_leadership_theories...
Role of managerial_economics_in_business_decision_making
Approaches of organizational_behavior
Vivo v17 pro Review

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Pre independence Education in Inndia.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Classroom Observation Tools for Teachers
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Business Ethics Teaching Materials for college
PPTX
master seminar digital applications in india
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPH.pptx obstetrics and gynecology in nursing
Pre independence Education in Inndia.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
VCE English Exam - Section C Student Revision Booklet
Week 4 Term 3 Study Techniques revisited.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Classroom Observation Tools for Teachers
human mycosis Human fungal infections are called human mycosis..pptx
Business Ethics Teaching Materials for college
master seminar digital applications in india
Module 4: Burden of Disease Tutorial Slides S2 2025
Pharma ospi slides which help in ospi learning
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Renaissance Architecture: A Journey from Faith to Humanism
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx

Data resource management and DSS

  • 2. Database • Database is a collection of logically related data that are organized in a way to facilitate easy accessing and processing of data. • DATABASE : A collection of data is referred to as database. • e.g. 1. record of students stored in files • 2. information stored over internet • • DATABASE MANAGEMENT SYSTEM: It is basically a computer based record keeping system (program). • e.g. MySQL • Microsoft Access • FileMaker • FoxPro
  • 3. DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: • alone, or • combined / related to other data to provide answers to the user’s question.
  • 4. Fundamental Data Concept • Character: Single alphabetic, numeric, other symbol • Field: Column, grouping of Character • Record: Logical grouping of field attribute • File(table): a group of related record • Database: integrated collection of logically related data element
  • 5. What Is a DBMS? • A very large, integrated collection of data. • Models real-world enterprise. ▫ Entities (e.g., students, courses) ▫ Relationships (e.g., Kritika is taking MIS564) • A Database Management System (DBMS) is a software package designed to store and manage databases.
  • 6. Contd… • Character: Basic Logical element which consists of single alphabet, numeric, symbol. • Field: Next higher level of data is the field or data item. A field consists of group of related characters. For example age • Record: The fields required to describe the attributes of an entity are grouped to form a record. Record represents a collection of attributes that describes a single instance of an entity • File: A group of related records is a data file. If its independent of any other files related to it, a single table may be referred to as a flat file. • Database: It is an integrated collection of logically related data elements. A database consolidates records previously stored in separate files into a common pool of data elements that provides data for many application.
  • 9. Database Systems: Today From Friendster.com on-lin
  • 10. Other Ways Databases Make Life Better? • “Players could finally sign up for the Star Wars Galaxies game last week as Sony opened up registration to the public.” • “Once players got in to the game they found that the game servers were offline because of database problems.” • “Some players spent hours tuning their in- game characters only to find that crashes deleted all their hard work.” • Source: BBC News Online, July 1, 2003.
  • 12. Purpose of database : 1. It reduces DATA REDUNDANCY to a large extent. 2. It controls DATA INCONSISTENCY. 3. It facilitate SHARING of data. 4. It ensures DATA SECURITY. Name D.O.B Fees Harsh 23/01/1993 Not paid Amar 04/11/1994 Paid Devendra 14/06/199 2 Not paid Harsh 23/01/1993 Not paid Name D.O.B Fees Harsh 23/01/199 3 Paid Amar 04/11/199 4 Paid Devendra 14/06/199 2 Paid Harsh 23/01/199 3 Not paid Data Redundancy Data Inconsistency
  • 13. DATABASE MANAGEMENT SYSTEMS 2. What is a Database Management System? A DBMS is a collection of programs which • provide management of databases • control access to data • contain a query language to retrieve information easily
  • 14. 3. Database Design It is important to design the database in such a way that: • A specific item can be reached easily (maximum guarantee that the desired record will be reached) • The database can respond to the user’s different questions easily (necessary relationships are provided) DATABASE MANAGEMENT SYSTEMS
  • 15. •The database occupies minimum storage space (choosing data types and how to express a certain concept is important) •The database contains no unnecessary data (storing the gross salary is enough, the net salary can be calculated from the gross salary) • Data can be added and updated easily without causing mistakes (no data redundancy) DATABASE MANAGEMENT SYSTEMS
  • 16. Data redundancy Different and conflicting versions of the same data e.g. Employee database: personal info payroll - ID - ID (relating parameter) - name - name (causes redundancy) - address - gross salary DATABASE MANAGEMENT SYSTEMS
  • 17. STEPS IN DATABASE DESIGN • Requirement analysis What does the user want? • Conceptual database design Defining the entities and attributes, and the relationships between these --> The ER model • Physical database design Implementation of the conceptual design using a Database Management System DATABASE MANAGEMENT SYSTEMS
  • 18. TERMINOLOGY • Entity --> What is this table about? students • Attribute (Field) --> What items of information are necessary to keep concerning this entity? ID, name, department, year, advisor • Record (Tuple) --> A set of values for each attribute for one item 20027654 Anil PM 30 Nepal DATABASE MANAGEMENT SYSTEMS
  • 19. • Key --> The attribute used to define a required item who is the of PM? Types of keys: * Primary Key: Key used to uniquely identify a record * Foreign Key: A field in this table which is the Primary key of another table • Relationship --> Definitions linking two or more tables DATABASE MANAGEMENT SYSTEMS
  • 20. Why Use a DBMS? • Data independence and efficient access. • Reduced application development time. • Data integrity and security. • Uniform data administration. • simultaneous access, recovery from crashes.
  • 21. Why Study Databases?? • Shift from computation to information ▫ at the “low end”: mix up to webspace (a mess!) ▫ at the “high end”: scientific applications • Datasets increasing in diversity and volume. ▫ Digital libraries, interactive video • DBMS encompasses most of CS ▫ OS, languages, theory, multimedia, logic ?
  • 22. Levels of Abstraction • Many views, single conceptual (logical) schema and physical schema. ▫ Views describe how users see the data. ▫ Conceptual schema defines logical structure ▫ Physical schema describes the files and indexes used. Physical Schema Conceptual Schema View 1 View 2 View 3
  • 23. Various levels of database implementation (concept of abstraction) 1. INTERNAL LEVEL (PHYSICAL LEVEL): It describes how data are actually stored on the storage medium. It is closest to database programmer. Lowest level of database abstraction. 2. CONCEPTUAL LEVEL: It describes what data are actually stored in database. It is closest to the database manager. It is an intermediate level of database abstraction. 3. EXTERNAL LEVEL (VIEW LEVEL): It describes the way in which the data are viewed by individual user.
  • 24. Three levels of data abstraction View 1 View 2 View 3 Conceptual level Physical level External level Internal Stored-acc. length=60 Account # type=bytes(15) offset=0 Name type=bytes(20) offset=15 Type type=bytes(10) offset=35 Amount type=bytes(15) offset=45 Conceptual AC_No numeric(15) AC_Name character(20) Type character(10) Amount numeric(15) View 1 AC_Name Amount View 2 AC_No AC_Name Type Amount Account holder Manager (DBMS Programmer) Database handler User
  • 25. Example: University Database Conceptual schema:  Students(sid: string, name: string, login: string, age: integer, gpa:real)  Courses(cid: string, cname:string, credits:integer)  Enrolled(sid:string, cid:string, grade:string)  Physical schema:  Relations stored as unordered files.  Index on first column of Students.  External Schema (View):  Course_info(cid:string,enrollment:integer)
  • 26. Class Discussion • Explain the different characteristics and benefits of DBMS
  • 27. Data Independence * • Data independence is the type of data transparency that matters for a centralised DBMS. It refers to the immunity of user applications to changes made in the definition and organization of data. Physical data independence deals with hiding the details of the storage structure from user applications. • Applications insulated from how data is structured and stored. • Logical data independence: Protection from changes in logical structure of data. • Physical data independence: Protection from changes in physical structure of data. * One of the most important benefits of using a DBMS!
  • 28. Concurrency Control  Concurrent execution of user programs is essential for good DBMS performance.  Because disk accesses are frequent, and relatively slow, it is important to keep the CPU humming by working on several user programs concurrently.  Interleaving actions of different user programs can lead to inconsistency: e.g., check is cleared while account balance is being computed.  DBMS ensures such problems don’t arise: users can pretend they are using a single-user system.
  • 29. Structure of a DBMS • A typical DBMS has a layered architecture. • The figure does not show the concurrency control and recovery components. • This is one of several possible architectures; each system has its own variations. Query Optimization and Execution Relational Operators Files and Access Methods Buffer Management Disk Space Management DB
  • 31. Types of Databases •Hierarchical database •Network database •Relational database •Object-oriented database
  • 32. HIERARCHICAL DATABASE • A DBMS is said to be hierarchical if the relationships among data in the database are established in such a way that one data item is present as the subordinate of another one. • Here subordinate means that items have 'parent-child' relationships among them. Direct relationships exist between any two records that are stored consecutively. The data structure "tree" is followed by the DBMS to structure the database. No backward movement is possible/allowed in the hierarchical database.
  • 34. • Advantage Hierarchical database can be accessed and updated rapidly because in this model structure is like as a tree and the relationships between records are defined in advance. This feature is a two-edged. • Disadvantage This type of database structure is that each child in the tree may have only one parent, and relationships or linkages between children are not permitted, even if they make sense from a logical standpoint. Hierarchical databases are so in their design. it can adding a new field or record requires that the entire database be redefined.
  • 35. NETWORK DATABASE • A DBMS is said to be a Network DBMS if the relationships among data in the database are of type many-to-many. • The relationships among many-to-many appears in the form of a network. Thus the structure of a network database is extremely complicated because of these many-to-many relationships in which one record can be used as a key of the entire database. A network database is structured in the form of a graph that is also a data structure.
  • 37. RELATIONAL DATABASE • A DBMS is said to be a Relational DBMS or RDBMS if the database relationships are treated in the form of a table. there are three keys on relational DBMS 1)relation 2)domain 3)attributes. • A network means it contains fundamentel constructs sets or records.sets contains one to many relationship,records contains fields statical table that is composed of rows and columns is used to organize the database and its structure and is actually a two dimension array in the computer memory. A number of RDBMSs are available, some popular examples are Oracle, Sybase, Ingress,Informix, Microsoft SQL Server, and Microsoft Access.
  • 39. OBJECT-ORIENTED DATABASE • Object-oriented databases use small, reusable chunks of software called objects. The objects themselves are stored in the object-oriented database. Each object consists of two elements: 1) a piece of data (e.g., sound, video, text, or graphics), and 2) the instructions, or software programs called methods, for what to do with the data. • Object-oriented databases have two disadvantages. First, they are more costly to develop. Second, most organizations are reluctant to abandon or convert from those databases that they have already invested money in developing and implementing. However, the benefits to object-oriented databases are compelling. The ability to mix and match reusable objects provides incredible multimedia capability.
  • 42. Which are our lowest/highest margin customers ? Who are my customers and what products are they buying? Which customers are most likely to go to the competition ? What impact will new products/services have on revenue and margins? What product prom- -otions have the biggest impact on revenue? What is the most effective distribution channel? A PRODUCER WANTS TO KNOW….
  • 43. DATA, DATA EVERYWHERE YET ...  I can’t get the data I need  need an expert to get the data  I can’t understand the data I found  available data poorly documented  I can’t use the data I found  results are unexpected  data needs to be transformed from one form to other  I can’t find the data I need  data is scattered over the network  many versions, subtle differences
  • 44. Evolution of Database Technology • 1960s: ▫ Data collection, database creation, IMS and network DBMS • 1970s: ▫ Relational data model, relational DBMS implementation • 1980s: ▫ RDBMS, advanced data models (extended-relational, OO, deductive, etc.) and application-oriented DBMS (spatial, scientific, engineering, etc.) • 1990s—2000s: ▫ Data mining and data warehousing, multimedia databases, and Web databases 44
  • 45. DATA WAREHOUSE The data warehouse is that portion of an overall Architected Data Environment that serves as the single integrated source of data for processing information.
  • 47. TERMS RELATED TO DATA WAREHOUSE DATA MART STAGING AREA OLAP OLAP TOOLS
  • 49. HOW IS THE WAREHOUSE DIFFERENT? The data warehouse is distinctly different from the operational data used and maintained by day- to-day operational systems. Data warehousing is not simply an “access wrapper” for operational data, where data is simply “dumped” into tables for direct access.
  • 50. OPERATIONAL DATA Application oriented Detailed Accurate, as of the moment of access Serves the clerical community Performance sensitive (immediate response required when entering a transaction) Flexible structure; variable contents Small amount of data used in a process DATA WAREHOUSE Subject oriented Summarized Represents values over time Serves the managerial community Performance relaxed (immediacy not required) Static structure large amount of data used in a process
  • 51. • Evolution in organizational use of data warehouses Organizations generally start off with relatively simple use of data warehousing. Over time, more sophisticated use of data warehousing evolves. The following general stages of use of the data warehouse can be distinguished: • Off line Operational Database Data warehouses in this initial stage are developed by simply copying the data off an operational system to another server where the processing load of reporting against the copied data does not impact the operational system's performance. • Off line DataWarehouse Data warehouses at this stage are updated from data in the operational systems on a regular basis and the data warehouse data is stored in a data structure designed to facilitate reporting.
  • 52. • Real Time Data Warehouse –Data warehouses at this stage are updated every time an operational system performs a transaction (e.g. an order or a delivery or a booking.) • Integrated DataWarehouse – Data warehouses at this stage are updated every time an operational system performs a transaction. The data warehouses then generate transactions that are passed back into the operational systems.
  • 53. Methods of Minimizing Non-sampling Errors • Checking the sampling process • Preparation of questionnaire • Pilot survey • Fix procedures • Use of competent manpower • Provide information • Provide training • Use of experts • Checking data processing and analysis