Chapter 5 Business Intelligence - UTPB

advertisement
Chapter 6
Business Intelligence
Databases and Information
Management
Database Approach
• Database – Paper Form
– Phonebooks
– Index cards
– Paper files
• Database – Digital Form
– Automation
– Table Relationships
– Reporting
Small Organizations File Method
Customer
History
Customer
Files
Inventory
Files
Orders
Files
Product
Files
Reorder
Files
Table Relationships
One : One
•
One-to-One
–
•
•
M2M
One-to-Many
–
One to Many
One record & only One
corresponds to exactly one
record
Each record in Table A may have
many linked records in Table B,
However, may have only one
corresponding record in Table A
Many-to-Many
–
–
Cardinal Sinned
Database Mangement System
• Only supports one-to-many
relationships
Order Processing – Digital Form
Sandra
Crain’s
Web
ORDER
Server
INPUT
PROGRAM
TRANSLATION
Application
HTML
TO SQL
Server
RECIEVES
AND
SENDS
Database
I.E. Server
RECEIPT
Database
LoadSales
Into
Tables
Database
Order
Database
Received
Sandra Crain
Customer
Reports
Dedicated Computer
Madison Flagship Embossed Buff Croc Caroline Dowel
$798.00
Product Number: 18661
Elegant crocodile embossing finished with a soft metallic
wash – a limited edition classic with exquisite detailing
Select
Madison Gathered Leather Abigail Shoulder Bag
$898.00
Product Number: 18603
A graceful shape and spacious interior make this new shoulder
silhouette a great everyday bag with luxuries leather
Select
Madison OP Art Metallic Outline Hailey
$398.00
Product Number: 18241
Day-to-Evening elegance meets luxurious practicality on a new
crossbody in luminous OP Art fabric with a satin finish
Select
Madison Flagship Embossed Buff Croc Caroline Dowel
$798.00
Product Number: 18661
Elegant crocodile embossing finished with a soft metallic wash
– a limited edition classic with exquisite detailing
First Name:
Address:
City:
State:
Zip:
Sandra
Last Name:
Crain
124 Money Street
Username:
BigSpender
Password:
●●●●●●●
Midland
Texas
Age:
79701
Gender
29 1/2
F
Email: HusbandMoney@g.com
Phone:
432-514-7982
Credit Card Type:
Credit Card Number:
Visa
5866-4400-3900-1573
Credit Card Expiration Date:
Jan 13, 2017
Submit
Prod_ID = 18661
Description = Madison Flagship Embossed Buff Croc Caroline
Dowel
W_Price = $414.96
R_Price = $798.00
First Name:
Address:
C_F_Name
Last Name:
C_L_Name
C_Address_1
Username:
C_Username
C_Passwd
City:
C_City
Password:
State:
C_State
Age:
Zip:
C_Zip
Gender
Email:
C_Email
Phone:
C_Phone
Credit Card Type:
C_Age
C_Gender
Credit_Card_T
Credit Card Number:
Credit Card Expiration Date:
Credit_Card_N
Credit_Card_E
Customer Spreadsheet View
Represents:
Represents:
Also
Known as:
Attributes
Two-Dimensional
A
UNIQUE
Intersection
INDENTIFIER
describes
of aTables
Row
the
Person, Place,
Records
or Tuples
or Thing
Entity
and
identify
Column
a row in a Table
Customer Information
Customer_ID
C_F_NAME
C_L_NAME
25361
Sandra
Crain
23411
Sami
61234
Tyler
C_ADDRESS_1
Primary
Attributes
Columns
ENTITY
Fields
RowsKey
C_CITY
C_STATE
C_ZIP
C_EMAIL
124 Money St
Midland
TX
79701
HusbandMoney@g.com
Sotelo
254 Easy St
Houston
TX
57931
BigBucks@h.com
Bagwell
875 Diamonds LN
Dallas
TX
47983
RichGirl@b.com
•
Relational Database
– Groups of data are organized
– Has a relationship to other files
– Tables are constructed of both
Rows & Columns
Product Database Spreadsheet
Represents:
UNIQUE INDENTIFIER
Identifies
two or more
Identify a Row in a Table
columns
PRODUCTS
Prod_ID
Supplier_ID
Description
Primary
Foreign Key
Key
W_Price
R_Price
18661
20010
Madison Flagship Embossed
$414.96
$798.00
18603
20010
Madison Gathered Leather
$466.96
$898.00
18241
20010
Madison OP Art Metallic Outline Hailey
$206.96
$398.00
Customer Information
Customer_ID
C_Frist_Name
C_Last_Name
C_Address_1
C_City
C_State
C_Zip
Process
Primary Key
PRODUCT
Prod_ID
Supplier_ID
Description
Primary
Foreign Key
Key
W_Price
R_Price
18661
20010
Madison Flagship Embossed
$414.96
$798.00
18603
20010
Madison Gathered Leather
$466.96
$898.00
18241
20010
Madison OP Art Metallic Outline Hailey
$206.96
$398.00
ORDER
LINE_ITEM
Order_ID
Prod_ID
Prod_Quan
4001
18661
1
2525
18603
1
1022
18241
1
Order_
ID
Order_Date
Net_Amt
Tax
Total_Amt
4001
10/17/11
$798.00
8.5
$865.83
2525
09/14/11
$898.00
8.5
$974.33
1022
05/16/11
$398.00
8.5
$431.83
SUPPLIER
Supplier_ID
S_NAME
S_Street
S_CITY
S_State
S_Zip
20010
Coach
12 Coach ST
New York
NY
66359
20111
C. Louboutin
2020 1st AVE
New York
NY
66885
34012
Gucci
197 Wall St.
Manhattan
NY
45782
Processing
ORDER
Customer
Information
Customer_ID
1-1
Order_ID
Customer_ID
Order_Date
C_Last_Name
Net_Amount
C_Address_1
Tax
C_City
Total_Amount
M-1
C_Frist_Name
C_State
C_Zip
Inventory
1-1
Prod_ID
C_Email
Quan_in_Stock
C_Phone
Sales
Credit_Card_T
Credit_Card_N
Credit_Card_E
C_UserName
C_Passwd
Order Lines
Item_Line
Order_ID
Prod_ID
Description
C_Age
Quantity
C_Gender
Unit_Price
Process
ORDER
Order_Lines
Order_ID
Customer_ID
Item_Number
Customer_ID
Order_ID
C_Frist_Name
Order_Date
Prod_ID
C_Last_Name
Net_Amount
Description
Tax
Quantity
Total_Amount
Unit_Price
Customer
C_Address_1
SELECT CUSTOMER.C_First_Name, C_Last_Name, ORDER.Order.Date,
ORDER.Total_Amount, ORDER_ LINES.Description
FROM CUSTOMER, ORDER, ORDER_LINES
WHERE CUSTOMER.C_F_Name = Sandra, CUSTOMER.C_L_Name = Crain; AND
ORDER.Total_Amoumt > 100;
ORDER BY ORDER_DATE DESC
RUN
Order_Date
C_First_Name
C_Last_Name
Total_Amount
Description
10/17/2011
Sandra
Crain
$865.00
Madison Flagship Embossed
09/14/2011
Sandra
Crain
$974.33
Madison Gathered Leather
05/16/2011
Sandra
Crain
$431.83
Madison OP Art Metallic Outline Hailey
Object-Oriented Databases
/*
Java Hello World example.
*/
public class HelloWorldExample{
public static void main(String args[]){
/*
Use System.out.println() to print on console.
*/
System.out.println("Hello World !");
}
}
/*
OUTPUT of the above given Java Hello World
Example would be :
Hello World !
*/
•
•
•
•
Pictures
Images
Video
Programs
Data Warehouse
Data Warehouse
• What it enables
–
–
–
–
Stores
Consolidates
Standardize
Better Decisions
• We can apply
– Analytical tools
– Graphical Reporting
• What we cannot do
– Alter information
The Data Warehouse
Operational
Data
Internal Data Sources
Transactional Databases
Extract
Cleanse/Scrubbing
Transform
Load
Packaged Applications
Uses
The process
Rules
Correcting
toofcombine
writing
Data Data
Data
Data Legacy Systems
into
Ensure
with
Target
other
Consistency
Database
Data
Programs
Mart
Customer
Data
Manufacturing
Data
Extract
Transform
* Cleanse
* Load
Data
Warehouse
• OLAP
•Data Mining
•Queries/Reporting
Historical
Data
External
Data
Data
Access &
Analysis
External Data Sources
Information
Directory
Data Mart
West Region
East Region
• Decentralized
warehouses
• Lower Cost
• Batch processes
Corporate Office
Online Analytical Processing (OLAP)
• What is OLAP
– A interactive navigational tool
to assess data, and perform
calculations of the fly
– Multi-Dimensional analytical
Queries
– Considered a Business
Intelligence tool
– View historical data using timestamps
– Aggregate data to the smallest
granular
– Enables Real-Time Reporting –
Executive Support Systems ESS
– Creates Multiple Views of
Data in Relational Databases
Top Software Providers
Microsoft Corporation
Hyperion Solutions Corporation
Cognos
Business Objects
MicroStrategy
SAP AG
Cartesis SA
Applix
Infor
Oracle Corporation
Data Mining
• Uncover Patterns
– To predict future
behavior
• Associations (Sam’s)
– If you buy one item, we
can predict other
purchase
– Sequences (Percentage)
• Classification (Dillard’s)
– Dividing customers into
groups – Pink/Red Party
• Clustering
– The discovery of groups
– demographics
A Review of OLAP
The End
Download