Post on 18-Jan-2016
Chapter 6Business 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 Files
Inventory Files
OrdersFiles
ProductFiles
CustomerHistory
ReorderFiles
Table Relationships
• One-to-One– One record & only One
corresponds to exactly one record
• One-to-Many– 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
M2M
One : One
One to Many
Order Processing – Digital Form
WebServer
Application Server
Sales Database
Sandra Crain
SandraCrain’sORDER INPUT
SandraCrain’sORDER INPUT
PROGRAMTRANSLATIONHTML TO SQL
PROGRAMTRANSLATIONHTML TO SQL
DatabaseLoadInto Tables
DatabaseLoadInto Tables
Order DatabaseReceived
DatabaseServer
RECIEVESAND SENDSI.E. RECEIPT
RECIEVESAND SENDSI.E. RECEIPT
Dedicated Computer
Customer Reports
Madison Flagship Embossed Buff Croc Caroline Dowel$798.00 Product Number: 18661Elegant crocodile embossing finished with a soft metallic wash – a limited edition classic with exquisite detailing
Madison Gathered Leather Abigail Shoulder Bag$898.00 Product Number: 18603A graceful shape and spacious interior make this new shoulder silhouette a great everyday bag with luxuries leather
Madison OP Art Metallic Outline Hailey$398.00 Product Number: 18241Day-to-Evening elegance meets luxurious practicality on a new crossbody in luminous OP Art fabric with a satin finish
Select
Select
Select
First Name: Last Name:
Address: Username:
City: Password:
State: Age:
Zip: Gender
Email:
Phone:
Credit Card Type:
Credit Card Number:
Credit Card Expiration Date:
Crain
F
Midland
Texas
79701
HusbandMoney@g.com
432-514-7982
Visa
5866-4400-3900-1573
Jan 13, 2017
BigSpender
●●●●●●●
29 1/2
Sandra
Submit
124 Money Street
Madison Flagship Embossed Buff Croc Caroline Dowel$798.00 Product Number: 18661Elegant crocodile embossing finished with a soft metallic wash – a limited edition classic with exquisite detailing
First Name: Last Name:
Address: Username:
City: Password:
State: Age:
Zip: Gender
Email:
Phone:
Credit Card Type:
Credit Card Number:
Credit Card Expiration Date:
C_L_Name
C_Gender
C_City
C_State
C_Zip
C_Email
C_Phone
Credit_Card_T
Credit_Card_N
Credit_Card_E
C_Username
C_Passwd
C_Age
C_F_Name
C_Address_1
Prod_ID = 18661Description = Madison Flagship Embossed Buff Croc Caroline DowelW_Price = $414.96R_Price = $798.00
Customer Spreadsheet View
• Relational Database– Groups of data are organized– Has a relationship to other files– Tables are constructed of both
Rows & Columns
Customer_ID C_F_NAME C_L_NAME C_ADDRESS_1 C_CITY C_STATE C_ZIP C_EMAIL
25361 Sandra Crain 124 Money St Midland TX 79701 HusbandMoney@g.com
23411 Sami Sotelo 254 Easy St Houston TX 57931 BigBucks@h.com
61234 Tyler Bagwell 875 Diamonds LN Dallas TX 47983 RichGirl@b.com
Customer Information ENTITYAttributesRepresents:Person, Place, or Thing
Represents:Attributes describes the EntityTwo-Dimensional Tables ColumnsRowsAlso Known as:Records or Tuples
Represents:A Intersection of a Row and Column
FieldsPrimary KeyRepresents:UNIQUE INDENTIFIERidentify a row in a Table
Product Database Spreadsheet
Prod_ID Supplier_ID Description 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
PRODUCTS
Represents:UNIQUE INDENTIFIERIdentify a Row in a Table
Primary KeyForeign KeyRepresents:Identifies two or more columns
Customer Information
Customer_ID
C_Frist_Name
C_Last_Name
C_Address_1
C_City
C_State
C_Zip Process
Prod_ID Supplier_ID Description 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_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
Order_ID Prod_ID Prod_Quan
4001 18661 1
2525 18603 1
1022 18241 1
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
PRODUCT
LINE_ITEM ORDER
SUPPLIER
Primary Key Foreign KeyPrimary Key Primary Key
Processing
Customer Information
Customer_ID
C_Frist_Name
C_Last_Name
C_Address_1
C_City
C_State
C_Zip
C_Email
C_Phone
Credit_Card_T
Credit_Card_N
Credit_Card_E
C_UserName
C_Passwd
C_Age
C_Gender
ORDER
Order_ID
Customer_ID
Order_Date
Net_Amount
Tax
Total_AmountInventory
Prod_ID
Quan_in_Stock
SalesOrder Lines
Item_Line
Order_ID
Prod_ID
Description
Quantity
Unit_Price
1-1
M-1
1-1
Process
Customer
Customer_ID
C_Frist_Name
C_Last_Name
C_Address_1
Order_Lines
Item_Number
Order_ID
Prod_ID
Description
Quantity
Unit_Price
ORDER
Order_ID
Customer_ID
Order_Date
Net_Amount
Tax
Total_Amount
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
• Pictures• Images• Video• Programs
/*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 !*/
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
ExtractTransform* Cleanse
* Load
DataWare-house
InformationDirectory
Data Access & Analysis
Operational Data
CustomerData
ManufacturingData
HistoricalData
External Data
Internal Data SourcesTransactional Databases
External Data Sources
ExtractPackaged Applications
Legacy SystemsPrograms
• OLAP•Data Mining•Queries/Reporting
TransformUses Rules to combine Data
with other Data
Cleanse/ScrubbingCorrecting Data
Ensure Consistency
LoadThe process of writing Data
into Target DatabaseDataMart
Data Mart
• Decentralized warehouses
• Lower Cost• Batch processes
Corporate Office
East RegionWest Region
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 time-stamps
– 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 CorporationHyperion Solutions CorporationCognosBusiness ObjectsMicroStrategySAP AGCartesis SAApplixInfor
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