62
SQL Server 2008 for Business Intelligence UTS Short Course

Business Intelligence with SQL Server

Embed Size (px)

DESCRIPTION

What is Business Intelligence? What do we need a Datawarehouse for? Why a Cube? What does SSIS do? SQL Server Integration Services rocks!

Citation preview

Page 1: Business Intelligence with SQL Server

SQL Server 2008 for Business IntelligenceUTS Short Course

Page 2: Business Intelligence with SQL Server

Specializes in C# and .NET

(Java not anymore) Testing

Automated tests Agile, Scrum

Certified Scrum Trainer

Technology aficionado • Silverlight• ASP.NET• Windows Forms

Peter Gfader

Page 3: Business Intelligence with SQL Server

Attendance

You initial sheet

Hands On Lab

You get me to initial sheet

Homework

Certificate

At end of 5 sessions If I say if you have completed successfully

Admin Stuff

Page 4: Business Intelligence with SQL Server

Course Timetable & Materials

http://www.ssw.com.au/ssw/Events/2010UTSSQL/

Resources

http://sharepoint.ssw.com.au/Training/UTSSQL/

Course Website

Page 5: Business Intelligence with SQL Server

Course OverviewSession

Date Time Topic

1Tuesday14-09-2010

18:00 - 21:00

SSIS and Creating a Data Warehouse

2Tuesday21-09-2010

18:00 - 21:00

OLAP – Creating Cubes and Cube Issues

3Tuesday28-09-2010

18:00 - 21:00

Reporting Services

4Tuesday05-10-2010

18:00 - 21:00

Alternative Cube Browsers

5Tuesday12-10-2010

18:00 - 21:00

Data Mining

Page 6: Business Intelligence with SQL Server

What is… Business Intelligence Data Warehouse / Data Mart SSIS (DTS)

Steps in Creating a Data warehouse Analysis of Existing Data Creating Structures Clean and Load (Staging)

Session 1: Tonight’s Agenda

Page 7: Business Intelligence with SQL Server

Automating with SSIS

Creating a Data Warehouse

Hands on Lab - You!

Session 1: Tonight’s Agenda

Page 8: Business Intelligence with SQL Server

Business intelligence (BI) is a broad category of applications and technologies for gathering,

storing, analyzing, and providing access to data to help enterprise users make better business

decisions.

Reports + Interactivity

Business Intelligence Defined?

Page 9: Business Intelligence with SQL Server

OLTP - On Line Transaction Processing System

Transactions

Simple & Efficient

Optimized for 1 record at a time

Our traditional data store= OLTP

Page 10: Business Intelligence with SQL Server

Database

Page 11: Business Intelligence with SQL Server

BI on top of OLTP

OK with little data...

Reports on OLTP database

Page 12: Business Intelligence with SQL Server

BI on top of OLTP

OK with little data...

BI with little data???

Reports on OLTP database

Page 13: Business Intelligence with SQL Server

Reports on OLTP database

BI on top of OLTP

OK with little data

BI with little data???

SLOW with huge data

Page 14: Business Intelligence with SQL Server

A database

The answer is "a database", no matter what the question is

Solution?

Page 15: Business Intelligence with SQL Server

Database

Cleaned and Restructured for Analysis (normalized schemas)

Data warehouse

Page 16: Business Intelligence with SQL Server

Data Warehouse

Page 17: Business Intelligence with SQL Server

We can go further...

Page 18: Business Intelligence with SQL Server

OLAP Cubes

Page 19: Business Intelligence with SQL Server

Pre calculated Data structure

Fast analysis of data

Dimensions and Measures (aggregations)

Dimension Hierarchies

Slice and Dice Measures by Dimensions

OLAP Cubes

Page 20: Business Intelligence with SQL Server

Let's do it

Page 21: Business Intelligence with SQL Server

1. Create Data Warehouse

2. Copy data to data warehouse

3. Create OLAP Cubes

4. Create Reports

5. Do some Data Mining Discovering a Relationship that was not obvious Predict future events (e.g. targeting and forecasting)

Steps

Page 22: Business Intelligence with SQL Server

1. Create the Data Warehouse

Page 23: Business Intelligence with SQL Server

What do you want to get out of it?

How much stock do we need? When are our highest sales? How many bikes did we sell last June?

Identify Candidate Data

Look at the data, see what might be useful

Identify Dimensions and Measures

Year, Product, Employee, etc (Dimensions) Sales Amount, Quantity, etc (Measures)

Creating a Data Warehouse

Page 24: Business Intelligence with SQL Server

Build Structure

Facts (Measures) and Dimensions Snowflake Schema

Creating a Data Warehouse

Page 25: Business Intelligence with SQL Server

Theory

Page 26: Business Intelligence with SQL Server

2 types of columns

1.Numeric facts

2.Foreign keys to dimensions

Contains

1.Detail-level facts

or

1.Aggregated facts

Fact table

Page 27: Business Intelligence with SQL Server

Categorizes data

Small in size

Dimension Tables

Page 28: Business Intelligence with SQL Server

• Simplest schema for a data warehouse

• Center is a fact table

Star schema

Page 29: Business Intelligence with SQL Server

Variation of star schema

More complex

Dimensions are normalized

Snowflake schema

Page 30: Business Intelligence with SQL Server

Revenue is fact

Dimensions to see data

Example: Retail chain

Page 31: Business Intelligence with SQL Server

Creating a Data Warehouse - Snowflake schema

Page 32: Business Intelligence with SQL Server

SQL Server’s Own Data Warehouse

Page 33: Business Intelligence with SQL Server
Page 34: Business Intelligence with SQL Server
Page 35: Business Intelligence with SQL Server
Page 36: Business Intelligence with SQL Server
Page 37: Business Intelligence with SQL Server
Page 38: Business Intelligence with SQL Server
Page 39: Business Intelligence with SQL Server
Page 40: Business Intelligence with SQL Server
Page 41: Business Intelligence with SQL Server
Page 42: Business Intelligence with SQL Server
Page 43: Business Intelligence with SQL Server
Page 44: Business Intelligence with SQL Server
Page 45: Business Intelligence with SQL Server
Page 46: Business Intelligence with SQL Server

2. Copy data to data warehouse

Page 47: Business Intelligence with SQL Server

Microsofts answer: SSIS

SQL Server Integration Services

Load Data

Extract, Transform (clean) and Load

Copy data to data warehouse

Page 48: Business Intelligence with SQL Server

Replaces DTS (Data Transform Services)

SQL Server Integration Services

Extract, Transform and Load (ETL) Moving Data Around

Automation

Batch Processing

Advanced error handling and programming control

What is SSIS?

Page 49: Business Intelligence with SQL Server

SQL Tasks Checking Integrity Clearing Stage Data Rebuilding Indexes Determining Surrogate Keys

Data Flow Tasks (ETL) Sources Transformations Destinations

SSIS Puts it all together Controls Sequencing and Conditional Flow Packages can be run as jobs in SQL Server

Automating with SSIS

Page 50: Business Intelligence with SQL Server

SSIS Designer

What can we do?

What can we import data from?

What can we export data to?

What can we do to the data?

Page 51: Business Intelligence with SQL Server

Almost anything you want!

Import data from one database to another FTP a file to a server Run SQL commands Send an email Call a web service Perform database maintenance tasks

What can we do?

Page 52: Business Intelligence with SQL Server
Page 53: Business Intelligence with SQL Server

What can we import from?

ADO.NET

Excel

Flat File

OLE DB

Raw File

XML

Page 54: Business Intelligence with SQL Server

What can we export to?

Same as what we can import from plus:

Data Mining Model Training

Dimension Processing Partition Processing SQL Server

Page 55: Business Intelligence with SQL Server

Compare

Split

Filter

Convert

Group

Join

Aggregate

Sample

Sort

Pivot

What can we do to the data?

Page 56: Business Intelligence with SQL Server

What is SSIS?

Page 57: Business Intelligence with SQL Server

Use it to gather data from different datasources

Import data from an employee list stored in excel Export data to XML and mail it to another company

for them to use Pull accounting and salary info from MYOB,

performance information from TFS/CRM and use the data to generate KPI reports

So what can you do with this?

Page 58: Business Intelligence with SQL Server

Creating a Data Warehouse – Data Warehouse Architecture

Page 59: Business Intelligence with SQL Server

Current data

Short database transactions

Online update/insert/delete

Normalization is promoted

High volume transactions

Transaction recovery is necessary

Current and historical data

Long database transactions

Batch update/insert/delete

Denormalization is promoted

Low volume transactions

Transaction recovery is not necessary

OLTP OLAPvs

Page 60: Business Intelligence with SQL Server

The 5 Sessions

What is… Business Intelligence Data Warehouse/Data Mart SSIS

Steps in Creating a Datawarehouse Analysis of Existing Data Creating Structures Clean and Load (Staging)

Automating with SSIS

Creating a Data Warehouse

Summary

Page 61: Business Intelligence with SQL Server

3 things…

[email protected]

u

http://blog.gfader.com/

twitter.com/peitor

Page 62: Business Intelligence with SQL Server

Thank You!

Gateway Court Suite 10 81 - 91 Military Road Neutral Bay, Sydney NSW 2089 AUSTRALIA

ABN: 21 069 371 900

Phone: + 61 2 9953 3000 Fax: + 61 2 9953 3105

[email protected]