Lecture 12 Databases & Information Systems

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 60

Technology

in Action
Alan Evans • Kendall Martin
Mary Anne Poatsy

Eleventh Edition

Copyright © 2015 Pearson Education, Inc.


Technology in Action

Chapter 11
Behind the Scenes:
Databases and Information Systems

Copyright © 2015 Pearson Education, Inc.


Chapter Topics
• Database Basics
– Database Building Blocks
– Database Types
– Database Functions
• How Businesses Use Databases
– Database Warehousing and Storage
– Business Intelligence Systems
– Data Mining

Copyright © 2015 Pearson Education, Inc. 3


Database Building Blocks
• A database is a collection of related data,
which can be
– Stored
– Sorted
– Organized
– Queried
• Databases make data more meaningful
and useful
• Databases turn data into information
Copyright © 2015 Pearson Education, Inc. 4
Database Building Blocks
Databases Versus Lists
• Databases are not needed for managing
all types of data
– Lists are adequate for simple tasks
– Other applications have tools to create lists
• Word
• Excel

Copyright © 2015 Pearson Education, Inc. 5


Database Building Blocks
Databases Versus Lists
• When a list is not sufficient for organizing
data
– Complex information
– When multiple people need to access
information

Copyright © 2015 Pearson Education, Inc. 6


Database Building Blocks
Databases Versus Lists
• Lists can lead to inconsistencies
– Repetition of data
– Errors from inconsistently entered or updated
data
• Data redundancy - unnecessary extra
copies of data
• Lists have other problems

Copyright © 2015 Pearson Education, Inc. 7


Database Building Blocks
Databases Versus Lists

Copyright © 2015 Pearson Education, Inc. 8


Database Building Blocks
Advantages of Using Databases
• Databases make our lives easier
• Databases can manage large amounts of
data efficiently
• Databases make information sharing
possible
• Databases promote data integrity

Copyright © 2015 Pearson Education, Inc. 9


Database Building Blocks
Disadvantages of Using Databases
• Disadvantages of databases
– Can be more time consuming and expensive
to set up and administer
– Care is needed to insure they function as
intended
– Administrator is responsible for designing,
constructing, and maintaining databases

Copyright © 2015 Pearson Education, Inc. 10


Database Building Blocks
Database Management Systems
• How databases are created
– Database management system (DBMS) is
designed to capture and analyze data
– Four main operations of a DBMS
• Creating databases and entering data
• Viewing (or browsing) and sorting data
• Querying (extracting) data
• Outputting data

Copyright © 2015 Pearson Education, Inc. 11


Database Building Blocks
Database Terminology
• How data is stored in a database

All the records representing


student information is a The city column represents
table in this database one field in this database

Julio’s
contac
t data
is one
record

Copyright © 2015 Pearson Education, Inc. 12


Database Building Blocks
Planning and Creating the Database
• How to create a database with a DBMS
– Describe the data to be captured
– Data dictionary & Metadata

Copyright © 2015 Pearson Education, Inc. 13


Database Building Blocks
Planning and Creating the Database
• How data tables are created
– Step 1: Input unique field names
– Step 2: Define the data type
– Step 3: Set a maximum field size
– Step 4: Set a default value if necessary
– Repeat for each field in the table

Copyright © 2015 Pearson Education, Inc. 14


Database Building Blocks
Planning and Creating the Database
• How to know what fields are needed
– Careful planning is required
– Field should describe a unique piece of data
• Do not combine two pieces of data
• Allows for better filtering and sorting

• Fields can be added or deleted

Copyright © 2015 Pearson Education, Inc. 15


Database Building Blocks
Planning and Creating the Database
• Rules for establishing field names
– Must be unique within a table
– Do not use spaces
• Use underscores or CamelCase can be used
• Use caption field to display spaces
– Creating a data dictionary will help you plan
– Determining what type of data can be
entered in a field

Copyright © 2015 Pearson Education, Inc. 16


Database Building Blocks
Planning and Creating the Database

Copyright © 2015 Pearson Education, Inc. 17


Database Building Blocks
Planning and Creating the Database
• Amount of data which can be entered into
a field
– Field size determines maximum number of
characters
– Tailor field size to match maximum length of
data
– Truncated data can result from field size set
too small

Copyright © 2015 Pearson Education, Inc. 18


Database Building Blocks
Using Primary Keys
• Having the same values in the same table
– It is possible for fields to have the same
values
– Each record must have a unique value, the
primary key
– Primary keys make it impossible to duplicate
records

Copyright © 2015 Pearson Education, Inc. 19


Database Building Blocks
Using Primary Keys
• A good primary key
– Must be unique
– Doesn’t have to represent something
– AutoNumber data type (Microsoft Access) is
often used

Copyright © 2015 Pearson Education, Inc. 20


Database Types

• Three major types of databases are in use


– Relational
– Object-oriented
– Multidimensional
• Relational databases
have the largest market share
• Multidimensional databases are growing

Copyright © 2015 Pearson Education, Inc. 21


Database Types
Relational Databases
• Relational database
– Organizes data in table format
– Logically groups similar data into a relation
(a table that contains related data)
– Links data between tables through
relationships on common keys

Copyright © 2015 Pearson Education, Inc. 22


Database Types
Relational Databases
Common field in one table (primary key) linked to
common field (foreign key) in second table
Need to keep data in related tables synchronized

Copyright © 2015 Pearson Education, Inc. 23


Database Types
Relational Databases
• Relational database
– Referential integrity: Each value in the
foreign table has a corresponding value in
the primary table
– Prevents orphan records

• Different types of relationships


– One-to-many
– One-to-one
– Many-to-many

Copyright © 2015 Pearson Education, Inc. 24


Database Types
Object-Oriented Databases
• Store data in objects rather than tables
• Contain methods for processing or
manipulating data
• Can store more types of data than
relational databases
• Can access data faster

Copyright © 2015 Pearson Education, Inc. 25


Database Types
Multidimensional Databases
• Stored data can be analyzed from different
perspectives (dimensions)
• Relational database has only two
dimensions (fields and records)
• Multidimensional databases organize in
cube format

Copyright © 2015 Pearson Education, Inc. 26


Database Types
Multidimensional Databases
• Advantages of multidimensional
databases
– Customized to provide information to variety
of users
– Process data faster
• Critical for larger databases
• Especially when accessed via the Internet

Copyright © 2015 Pearson Education, Inc. 27


Database Functions

• Functions
– Populate the database by creating records
– Allow users to extract subsets of data from
the database
– Output the data in a meaningful and
presentable format

Copyright © 2015 Pearson Education, Inc. 28


Database Functions
Inputting Data
• How to get data into the database
– Can be directly keyed into the database
– Can import from other files
• Saves time
• Reduces data error
• Must match the format of the database exactly
• Filters are often applied
• Nonconforming data is flagged

Copyright © 2015 Pearson Education, Inc. 29


Database Functions
Inputting Data
• How to make manual entry into a
database more efficient
– Input forms used to control data input
– Each field has a label
– Data is inputted into the blank boxes
– Existing data can be changed through forms
– Ensures that correct record is changed

Copyright © 2015 Pearson Education, Inc. 30


Database Functions
Inputting Data

Copyright © 2015 Pearson Education, Inc. 31


Database Functions
Data Validation
• Ensuring that only valid data is entered
– Process of ensuring that data meets
specified guidelines
– Rule is defined in data dictionary
– Specified in field properties for each field
– Violations result in error message with
suggested action
– Common validation rules

Copyright © 2015 Pearson Education, Inc. 32


Database Functions
Data Validation

Copyright © 2015 Pearson Education, Inc. 33


Database Functions
Viewing and Sorting Data
• Viewing the data in a database
– Displaying all data at one time is an option
– Many times data is viewed one record at a
time
– Forms display individual records
• From only one table
• From related tables

Copyright © 2015 Pearson Education, Inc. 34


Database Functions
Viewing and Sorting Data
• Reordering records in a database
– Easy to sort data in ascending or descending
order
• Highlight a column
• Click Ascending or Descending on the Ribbon

Copyright © 2015 Pearson Education, Inc. 35


Database Functions
Viewing and Sorting Data
View records
by browsing

Sort records
by field name

Copyright © 2015 Pearson Education, Inc. 36


Database Functions
Extracting or Querying Data
• Displaying a subset of data
– Use a filter or create a query
– Query language
– Structured Query Language (SQL) is the
most popular
– Modern systems provide wizards for creating
queries

Copyright © 2015 Pearson Education, Inc. 37


Database Functions
Outputting Data
• Retrieving data from of a database
– Most common output is viewable or printable
report
– Can generate reports from data in tables or
from queries
– Adjustments can be made to the report

Copyright © 2015 Pearson Education, Inc. 38


Database Functions
Outputting Data
• Transferring data from a database to
another software application
– Exporting: Putting data into format that
another application can understand
– Data can be imported and exported as well
as converted to and from other formats

Copyright © 2015 Pearson Education, Inc. 39


How Businesses Use
Databases
• Database Warehousing and Storage
• Business Intelligence Systems
• Data Mining

Copyright © 2015 Pearson Education, Inc.


Data Warehousing and Storage

• Problems arise when


– Organization gets much larger
– Data is stored in separate databases
• Benefits of accessing data from all
databases are being recognized
• Data warehouses and data marts are large
storage repositories

Copyright © 2015 Pearson Education, Inc. 41


Data Warehousing and Storage
Data Warehouses
• Large-scale collection of
data
• Contains and organizes
data in one place
• Data comes from multiple
databases
• Consolidate information
from various systems
• Present enterprise-wide
view of operations

Copyright © 2015 Pearson Education, Inc. 42


Data Warehousing and Storage
Data Warehouses
• Data is organized as in a normal database
– Data is organized by subject
– Focus is on one specific aspect of an
operation
– Can contain information from multiple
databases

Copyright © 2015 Pearson Education, Inc. 43


Data Warehousing and Storage
Data Warehouses
• Does not capture data from only one time
period
• Populated with data
– Internal sources
– External sources
– Clickstream data

Copyright © 2015 Pearson Education, Inc. 44


Data Warehousing and Storage
Data Marts
• How to handle smaller amounts of data
– Data mart: Small slices of data warehouse
– Analyze related group of data separated
from the main body
– Pertains to single component of business
– Vital because different data can be extracted
and reformatted
– Can be stored in specialized data marts

Copyright © 2015 Pearson Education, Inc. 45


Business Intelligence Systems

• Software-based solution to gather and


analyze information
– Delivers up-to-the-minute data
• Integral because they store the functional
information
– All perform similar functions

Copyright © 2015 Pearson Education, Inc. 46


Business Intelligence Systems

Copyright © 2015 Pearson Education, Inc. 47


Business Intelligence Systems
Office Support Systems
• What an office support system
accomplishes
– Office support system (OSS) is designed to
improve communications and assist
employees in accomplishing tasks

Copyright © 2015 Pearson Education, Inc. 48


Business Intelligence Systems
Transaction-Processing Systems
• Keeps track of
everyday business
activities
• Early computers
hosted TPSs

Copyright © 2015 Pearson Education, Inc. 49


Business Intelligence Systems
Transaction-Processing Systems
• Batch processing
– Data is accumulated then several
transactions are processed at once
– Appropriate for activities that are not time
sensitive
– Often more efficient

Copyright © 2015 Pearson Education, Inc. 50


Business Intelligence Systems
Transaction-Processing Systems
• When TPS transactions are processed
– Most transactions are processed in real-time
– Real-time processing is when the database
is updated while the transaction is taking
place
– Online transaction processing (OLTP)
ensures that data in the TPS is current

Copyright © 2015 Pearson Education, Inc. 51


Business Intelligence Systems
Management Information Systems
• Management information system (MIS)
– Provides timely and accurate information
– Enables managers to make critical decisions
– Directs outgrowth of TPSs
– Powerful if organized and outputted in useful
form
– Often included as a feature of TPSs
• Can generate various reports
Copyright © 2015 Pearson Education, Inc. 52
Business Intelligence Systems
Decision Support Systems
• Decision Support System (DSS)
– Another type of business intelligence system
– Designed to help managers develop
solutions for specific problems
– Uses information from databases and data
warehouses
– Users can add own insights and experiences
to solution

Copyright © 2015 Pearson Education, Inc. 53


Business Intelligence Systems
Decision Support Systems
• How DSSs get data

Copyright © 2015 Pearson Education, Inc. 54


Business Intelligence Systems
Decision Support Systems
• What function a model management
system performs
– Assists in building management models
– Analysis tool provides view of a particular
business situation
– Aids in decision making
– Used to analyze data to create additional
models

Copyright © 2015 Pearson Education, Inc. 55


Business Intelligence Systems
Enterprise Resource Planning Systems

• What an Enterprise Resource Planning


(ERP) system does
– Accumulates relevant information
– Makes information available
– Uses a common database

Copyright © 2015 Pearson Education, Inc. 56


Data Mining

• Data mining
– Process by which great amounts of data are
analyzed and investigated
– Objective is to spot significant patterns and
trends that would not be obvious

Copyright © 2015 Pearson Education, Inc. 57


Data Mining
• Why businesses mine their data
– Understand customers better
– Effective marketing by concentrating efforts
– Data is classified, then cluster analysis
allows managers to determine trends
• How businesses mine their data
– Classification, Estimation, Affinity grouping,
Clustering, Description and Visualization

Copyright © 2015 Pearson Education, Inc. 58


Data Mining

Copyright © 2015 Pearson Education, Inc. 59


All rights reserved. No part of this publication may be reproduced, stored in a
retrieval system, or transmitted, in any form or by any means, electronic,
mechanical, photocopying, recording, or otherwise, without the prior written
permission of the publisher. Printed in the United States of America.

Copyright © 2015 Pearson Education, Inc.

60555555555

You might also like