29
SQL Server 2008R2 Lezlee Coulter [email protected] linkedin.com/pub/lezlee-coulter 443-871-5557

Lac portfolio

Embed Size (px)

Citation preview

Page 1: Lac portfolio

SQL Server 2008R2

Lezlee [email protected]

linkedin.com/pub/lezlee-coulter443-871-5557

Page 2: Lac portfolio

Table of Contents

Introduction Why SetFocus?

Piggy BankDeveloping and Implementing a Sql Server Database for a Banking Institution

T-SQL QueriesSample T-SQL queries to include Merge, Recursice CTE’s, Pivot, Cross Apply

Mini-AdventureWorksImplentation of Database Development, SSIS packages & SSRS Reports

Putting It All TogetherBLOCK FLIX • Adhering to RDBMS core concepts through design and development of a

database for a movie rental company. • Import and export of data to and from central, store and kiosk databases

through SSIS. • Utilizing SSRS to create and distribute marketing & finance reports

Page 3: Lac portfolio

Why SetFocus?

Drawn to the intense nature of the course work and the high caliber instruction, I came to SetFocus to start on a new career path. “I want to live and breathe SQL Server”, was my request. They did not disappoint. The eight-week SQL Master’s Program delivered real world application of the skills needed in today’s work force. From Normalization to Reporting, from Stored Procedures to Integration, SetFocus provided me with an invaluable education.

But who am I? That’s what you really want to know. I am a person who decided that life is too short not do something I want to do. I wanted to know how they pull up my balance at the bank or find my information when I swipe my card at the grocery store. And I wanted to be able to do it myself. That’s why I’m here. That’s why I chose this path.

I’ve included some samples of my work and I hope you enjoy them. Please feel free to contact me with any questions.

Lezlee Coulter

Page 4: Lac portfolio

SQL Server Master’s Curriculum

RDBMS Concepts MS SQL Server 2008R2 T-SQL Implementing a Microsoft SQL Server

2008R2 Database Advanced SQL Querying and

Programming Microsoft SQL Server

2008R2 Integration Services Microsoft SQL Server 2008R2

Reporting Services

Page 5: Lac portfolio

Piggy BankFollowing our RDBMS and T-SQL instruction, we

were given a banking scenario and data that the bank may want to utilize.

Normalize the data through Codd’s rules

Write Stored Procedures to create customers and accounts.

Write Stored Procedures to initialize and complete standard banking transactions.

Create Views to access ATM and statement balances and transaction history.

The Task:

Page 6: Lac portfolio

PiggyBank ER DiagramForeign Key-Primary Key RelationshipsHandling the Many to Many Scenario

Page 7: Lac portfolio

Transfer Funds

Page 8: Lac portfolio

Create New Account

Cont’d

Page 9: Lac portfolio

ViewsA Current Month Bank Statement

Utilizing Concatenation , Joins & Date Functions

Page 10: Lac portfolio

T-SQL QueriesThe Merge Statement

New in 2008: Insert & Update in One

Page 11: Lac portfolio

Merge Results

Taking advantage of Output $Actionto review the results of the Merge

Page 12: Lac portfolio

T-SQL QueriesRecursive CTE’s

And again…

Page 13: Lac portfolio

Recursive CTE Results

Page 14: Lac portfolio

T-SQL QueriesApply

2005 feature that allows us to ‘apply’ the results of a UDF to all the rows in a table

The function

Page 15: Lac portfolio

Apply with Results

Page 16: Lac portfolio

T-SQL QueriesThe Pivot Statement

Page 17: Lac portfolio

Mini-AdventureWorksWorking in BIDS

Create a small database using the AdventureWorks model

Build SSIS Packages to import data from flat files

Design and deploy SSRS Reports to Report Server

Create linked reports from multi-parameterized reports and make available through subscriptions

The Task:

Page 18: Lac portfolio

SSISDynamic Import Products

Page 19: Lac portfolio

Import Orders

Inserts into the Details & Header TablesA mail task to relay results

Page 20: Lac portfolio

SSISImport Orders DataFlow

Page 21: Lac portfolio

SSRS Stored Procedure for Required Report

Utilizes Cross Apply and Rank Function

Page 22: Lac portfolio

SSRSReport Results from the Stored Procedure

Page 23: Lac portfolio

SSRS Matrix Report

Page 24: Lac portfolio

Block-FlixPutting It All Together

The Task:

A movie rental company needs a new database to function with store, kiosk & online rentals & sales

As a group, design and implement the database

Develop the necessary packages in SSIS to import inventory

Create reports for the finance & marketing departments

Present our work to management

Group RolesProject Lead: Lezlee CoulterDevelopers: James Vaughn

Theresa RiceIrina Zibermanas

Page 25: Lac portfolio

Central Database

Store DataBa

se

Store DataBase

Store DataBase

KioskDatabase

KioskDatabase

KioskDatabase

KioskDatabase

KioskDatabase

KioskDatabaseKiosk

Database

KioskDatabase

OnlineStore

Database Structure

StoreDatabase

Store DataBase

Page 26: Lac portfolio

All online transactionsMoviePurchases

Membership sign-up

Utilizes Central Database

Online Store

Central Database

Page 27: Lac portfolio

ER-DiagramPrimary Key- Foreign Key Relationships

Page 28: Lac portfolio

SSISInsert Existing Titles Into Inventory

Control Flow : Moves processed files to a new locationSend Tasks to relay success or failure

Page 29: Lac portfolio

SSIS