SlideShare a Scribd company logo
1 of 41
SQL Server 2008R2




       Lezlee Coulter
               lezlee99@comcast.net
      linkedin.com/pub/lezlee-coulter
                       443-871-5557
Table of Contents
 Introduction                 Why SetFocus?

 Piggy Bank
    Developing and Implementing a SQL Server Database for a Banking Institution

   T-SQL Queries
    Sample T-SQL Queries to include Merge, Recursive CTE’s, Pivot, Cross Apply

   Mini-AdventureWorks
    Implentation of Database Development, SSIS Packages & SSRS Reports

   Putting It All Together
    BLOCK 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.
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 ten-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 love. 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. But, 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
SQL Server Master’s Curriculum
   RDBMS Concepts
   MS SQL Server 2008R2 T-SQL
   Implementing a Microsoft SQL Server 2008R2
    Database
   Advanced T-SQL Querying and Programming
   Microsoft SQL Server 2008R2 Integration
    Services
   Microsoft SQL Server 2008R2 Reporting
    Services
Piggy Bank
Following 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.
Transfer Funds

                       •   Declare proper Accounts for Transfer
                       •   Declare proper Balances based on AccountID




•   Withdraw and Update Account
•   Deposit and Update Account
•   Verify opening balance based on
    Business Requirement
•   Ensure proper data entry

                                      Using SCOPE_IDENTITY() to Insert into
                                      Customer Account following Account Insert




                    Cont’d
Views
                                         A Current Month Bank Statement
                          Utilizing Concatenation , Joins & Date Functions




•   Select Customer data, Account data & Transaction data
    to provide a statement based on the current month
•   Using INNER JOINS to retrieve a “match” for the Customer/Account
T-SQL Queries
       The Merge Statement
New in 2008: Insert & Update in One




           • Update target table when date and currencies match, BUT rate DOES NOT
           • Insert into target table when date and currencies DO NOT match
Merge Results




Taking advantage of Output $Action
  to review the results of the Merge
T-SQL Queries
  Recursive CTE’s
    And again…
Recursive CTE Results
T-SQL Queries
                    Apply
2005 feature that allows us to ‘apply’ the results
       of a UDF to all the rows in a table




                The Function
Apply with Results
T-SQL Queries
 The Pivot Statement
SSIS Package
Uses a Merge Stored Procedure

       • Data Flow to Import Files
       • Inserts into a Temp Staging Table
SSIS Package
 The Control Flow
Mini-AdventureWorks
                                         Working 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
SSIS
Dynamic Import Products
Import Orders




Inserts into the Details & Header Tables
       A Mail Task to Relay Results
SSIS
Import Orders Data Flow
SSRS
Stored Procedure for Required Report




Utilizes Cross Apply and Rank Function
SSRS
Report Results from the Stored Procedure
Matrix Report   SSRS
Group Roles


   Block-Flix
                                           Project Lead: Lezlee Coulter
                                           Developers: James Vaughn
                                                         Theresa Rice
                                                         Irina Zilbermanas


        Putting It All Together


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
Online
                                         Store
                           Kiosk
 Kiosk                    Database                     Kiosk
            Store                          Store
Database    Store                                     Database
           Databas                        Database
           Database
              e

                                                       Kiosk
 Kiosk                Central Database
                                                      Database
Database

            Store                           Store
 Kiosk     Database                        Database    Kiosk
Database                   Kiosk                      Database
                          Database
• Store and Kiosk databases mirror Central database to
  facilitate efficient import & export of data

• Online Store utilizes Central Database

• Access to database restricted through stored procedures

• Import & Export of data through SSIS packages
ER-Diagram
Primary Key- Foreign Key Relationships
Receiving a Shipment


 • New copies of existing titles are delivered

 • An .xls file is accompanied, electronically

 • File contains
    • MovieID’s
    • MediaTypeID’s (DVD or Blu-Ray)
    • Quantity

 • ID’s must be imported via SSIS
SSIS
Insert Existing Titles Into Inventory




Control Flow : Moves processed files to a new location
         Send Tasks to relay success or failure
SSIS

              DATA FLOW
Inserting new copies of existing titles
            into inventory
Stored Procedure to Insert Inventory


       Using the While Statement to
       ‘”loop” through the Quantity
                                      Inserts 10 copies of MovieID 11
SSRS
Report Procedures


       Most Rented Movies for Current Month

   •   Counts TransactionID’s based on Movie Rentals
   •   Groups by Title & Genre
   •   Orders by Date desc
Requested Report
Based on Procedure, includes Company Name & Logo
SSRS
Report Procedures

       Most Active Customers for Current Month

   •    Sums Transaction Types based on Movie Rentals
   •    Groups by Members
   •    Orders by Rentals desc
Requested Report
Based on Procedure, includes Company Name & Logo
Managing Block Flix

 As the project lead, looking at the task as a whole, “seeing the forest”, was my main
purpose. We had just one week in which to design and implement the databases and
        prepare a presentation. Which aspects needed to be fully functional?
      Which aspects were Phase Two? Where did my teammates’ strengths lie?
          Where do we need to be by week’s end and how do we get there?

   We normalized the data and created the databases. I distributed the procedures
   and the SSIS packages that call them. After we wrote the procedures to be called
     from user-interface applications, such as Transactions and CreateMember,
I then focused on the procedures for the required reports and distributed the design.

   The challenge, for me, in this project was not as related to the technology as it
 was to “steering the ship” in the direction of success. It was a wonderful experience
 and one from which I learned to truly see all of our processes as a part of a whole.
Topping It All Off…
                    with a Trigger

                After Trigger
Sets DateModified to GETDAT() on any Update




                                                    Instead of Trigger
                                      Inhibits an update or delete of Transactions
DDL Trigger




A Safety Trigger to ensure that the tables
       are not dropped or altered
Thank you!

Please contact me with
    any questions.




                   Lezlee Coulter
                   443-871-5557
                   lezlee99@comcast.net

More Related Content

What's hot

Australia SharePoint Conference 2012 - SharePoint Performance - Tales from th...
Australia SharePoint Conference 2012 - SharePoint Performance - Tales from th...Australia SharePoint Conference 2012 - SharePoint Performance - Tales from th...
Australia SharePoint Conference 2012 - SharePoint Performance - Tales from th...Chris McNulty
 
Tutorial: SharePoint 2013 Admin in the Hybrid World by Jason Himmelstein - SP...
Tutorial: SharePoint 2013 Admin in the Hybrid World by Jason Himmelstein - SP...Tutorial: SharePoint 2013 Admin in the Hybrid World by Jason Himmelstein - SP...
Tutorial: SharePoint 2013 Admin in the Hybrid World by Jason Himmelstein - SP...SPTechCon
 
Turbo Enterprise Web 2.0 Ajax World 20081
Turbo Enterprise Web 2.0 Ajax World 20081Turbo Enterprise Web 2.0 Ajax World 20081
Turbo Enterprise Web 2.0 Ajax World 20081rajivmordani
 
SQL Server 2008 New Features
SQL Server 2008 New FeaturesSQL Server 2008 New Features
SQL Server 2008 New FeaturesDan English
 
7 common problems with salesforce data migration
7 common problems with salesforce data migration7 common problems with salesforce data migration
7 common problems with salesforce data migrationMark Kofman
 
Microsoft SQL Server Distributing Data with R2 Bertucci
Microsoft SQL Server Distributing Data with R2 BertucciMicrosoft SQL Server Distributing Data with R2 Bertucci
Microsoft SQL Server Distributing Data with R2 BertucciMark Ginnebaugh
 
First Look to SSIS 2012
First Look to SSIS 2012First Look to SSIS 2012
First Look to SSIS 2012Pedro Perfeito
 
SQL Server 2014 New Features
SQL Server 2014 New FeaturesSQL Server 2014 New Features
SQL Server 2014 New FeaturesOnomi
 
Tripit Ajaxworld V5
Tripit Ajaxworld V5Tripit Ajaxworld V5
Tripit Ajaxworld V5rajivmordani
 
New features of sql server 2016 bi features
New features of sql server 2016 bi featuresNew features of sql server 2016 bi features
New features of sql server 2016 bi featuresChris Testa-O'Neill
 
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013J.D. Wade
 
Part II: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTe...
Part II: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTe...Part II: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTe...
Part II: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTe...SPTechCon
 
Robert Parkin Portfolio
Robert Parkin PortfolioRobert Parkin Portfolio
Robert Parkin Portfoliorsparkin
 
Getting SharePoint 2010 Deployment Right final
Getting SharePoint 2010 Deployment Right finalGetting SharePoint 2010 Deployment Right final
Getting SharePoint 2010 Deployment Right finalvmaximiuk
 
Sql server 2012 smart dive presentation 20120126
Sql server 2012 smart dive presentation 20120126Sql server 2012 smart dive presentation 20120126
Sql server 2012 smart dive presentation 20120126Andrew Mauch
 
Developing ssas cube
Developing ssas cubeDeveloping ssas cube
Developing ssas cubeSlava Kokaev
 

What's hot (20)

Office 2010 Programming
Office 2010 ProgrammingOffice 2010 Programming
Office 2010 Programming
 
Australia SharePoint Conference 2012 - SharePoint Performance - Tales from th...
Australia SharePoint Conference 2012 - SharePoint Performance - Tales from th...Australia SharePoint Conference 2012 - SharePoint Performance - Tales from th...
Australia SharePoint Conference 2012 - SharePoint Performance - Tales from th...
 
Tutorial: SharePoint 2013 Admin in the Hybrid World by Jason Himmelstein - SP...
Tutorial: SharePoint 2013 Admin in the Hybrid World by Jason Himmelstein - SP...Tutorial: SharePoint 2013 Admin in the Hybrid World by Jason Himmelstein - SP...
Tutorial: SharePoint 2013 Admin in the Hybrid World by Jason Himmelstein - SP...
 
Turbo Enterprise Web 2.0 Ajax World 20081
Turbo Enterprise Web 2.0 Ajax World 20081Turbo Enterprise Web 2.0 Ajax World 20081
Turbo Enterprise Web 2.0 Ajax World 20081
 
SQL Server 2008 New Features
SQL Server 2008 New FeaturesSQL Server 2008 New Features
SQL Server 2008 New Features
 
7 common problems with salesforce data migration
7 common problems with salesforce data migration7 common problems with salesforce data migration
7 common problems with salesforce data migration
 
Microsoft SQL Server Distributing Data with R2 Bertucci
Microsoft SQL Server Distributing Data with R2 BertucciMicrosoft SQL Server Distributing Data with R2 Bertucci
Microsoft SQL Server Distributing Data with R2 Bertucci
 
First Look to SSIS 2012
First Look to SSIS 2012First Look to SSIS 2012
First Look to SSIS 2012
 
SQL Server 2014 New Features
SQL Server 2014 New FeaturesSQL Server 2014 New Features
SQL Server 2014 New Features
 
Tripit Ajaxworld V5
Tripit Ajaxworld V5Tripit Ajaxworld V5
Tripit Ajaxworld V5
 
New features of sql server 2016 bi features
New features of sql server 2016 bi featuresNew features of sql server 2016 bi features
New features of sql server 2016 bi features
 
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
 
Part II: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTe...
Part II: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTe...Part II: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTe...
Part II: SharePoint 2013 Administration by Todd Klindt and Shane Young - SPTe...
 
SSIS begineer
SSIS begineerSSIS begineer
SSIS begineer
 
It ready dw_day3_rev00
It ready dw_day3_rev00It ready dw_day3_rev00
It ready dw_day3_rev00
 
Robert Parkin Portfolio
Robert Parkin PortfolioRobert Parkin Portfolio
Robert Parkin Portfolio
 
Getting SharePoint 2010 Deployment Right final
Getting SharePoint 2010 Deployment Right finalGetting SharePoint 2010 Deployment Right final
Getting SharePoint 2010 Deployment Right final
 
Sql server 2012 smart dive presentation 20120126
Sql server 2012 smart dive presentation 20120126Sql server 2012 smart dive presentation 20120126
Sql server 2012 smart dive presentation 20120126
 
Developing ssas cube
Developing ssas cubeDeveloping ssas cube
Developing ssas cube
 
February 20th, 2013 Presentation - Chris McNulty
February 20th, 2013 Presentation - Chris McNultyFebruary 20th, 2013 Presentation - Chris McNulty
February 20th, 2013 Presentation - Chris McNulty
 

Similar to Lezlee Coulter SQl Server Portfolio

Steps towards business intelligence
Steps towards business intelligenceSteps towards business intelligence
Steps towards business intelligenceAhsan Kabir
 
simha msbi resume
simha msbi resumesimha msbi resume
simha msbi resumeT.N simha
 
Simha msbi resume
Simha msbi resumeSimha msbi resume
Simha msbi resumeT.N simha
 
Professional Portfolio
Professional PortfolioProfessional Portfolio
Professional PortfolioMoniqueO Opris
 
SSIS Tutorial For Beginners | SQL Server Integration Services (SSIS) | MSBI T...
SSIS Tutorial For Beginners | SQL Server Integration Services (SSIS) | MSBI T...SSIS Tutorial For Beginners | SQL Server Integration Services (SSIS) | MSBI T...
SSIS Tutorial For Beginners | SQL Server Integration Services (SSIS) | MSBI T...Edureka!
 
Jessica Herndon Sql Portfolio
Jessica Herndon Sql PortfolioJessica Herndon Sql Portfolio
Jessica Herndon Sql PortfolioJessicaLHerndon
 
SQL Server 2019 hotlap - WARDY IT Solutions
SQL Server 2019 hotlap - WARDY IT SolutionsSQL Server 2019 hotlap - WARDY IT Solutions
SQL Server 2019 hotlap - WARDY IT SolutionsMichaela Murray
 
Load data from Office365 to Snowflake in minutes
Load data from Office365 to Snowflake in minutesLoad data from Office365 to Snowflake in minutes
Load data from Office365 to Snowflake in minutessyed_javed
 
Intro to Azure Data Factory v1
Intro to Azure Data Factory v1Intro to Azure Data Factory v1
Intro to Azure Data Factory v1Eric Bragas
 
8+ years of experience in Java/J2EE technologies
8+ years of experience in Java/J2EE technologies8+ years of experience in Java/J2EE technologies
8+ years of experience in Java/J2EE technologiessukanyanarra
 
Balamurugan msbi cv
Balamurugan msbi cvBalamurugan msbi cv
Balamurugan msbi cvbala murugan
 
Colin\'s BI Portfolio
Colin\'s BI PortfolioColin\'s BI Portfolio
Colin\'s BI Portfoliocolinsobers
 
Shane_O'Neill_CV_slim
Shane_O'Neill_CV_slimShane_O'Neill_CV_slim
Shane_O'Neill_CV_slimShane O'Neill
 
AnishNSheth_Business_Intelligence_Architect
AnishNSheth_Business_Intelligence_ArchitectAnishNSheth_Business_Intelligence_Architect
AnishNSheth_Business_Intelligence_ArchitectAnish Sheth
 

Similar to Lezlee Coulter SQl Server Portfolio (20)

Steps towards business intelligence
Steps towards business intelligenceSteps towards business intelligence
Steps towards business intelligence
 
Siva-CV
Siva-CVSiva-CV
Siva-CV
 
My SQL Portfolio
My SQL PortfolioMy SQL Portfolio
My SQL Portfolio
 
simha msbi resume
simha msbi resumesimha msbi resume
simha msbi resume
 
Simha msbi resume
Simha msbi resumeSimha msbi resume
Simha msbi resume
 
Professional Portfolio
Professional PortfolioProfessional Portfolio
Professional Portfolio
 
Chris_Resume_2017
Chris_Resume_2017Chris_Resume_2017
Chris_Resume_2017
 
Rakesh
RakeshRakesh
Rakesh
 
Rakesh
RakeshRakesh
Rakesh
 
SSIS Tutorial For Beginners | SQL Server Integration Services (SSIS) | MSBI T...
SSIS Tutorial For Beginners | SQL Server Integration Services (SSIS) | MSBI T...SSIS Tutorial For Beginners | SQL Server Integration Services (SSIS) | MSBI T...
SSIS Tutorial For Beginners | SQL Server Integration Services (SSIS) | MSBI T...
 
Jessica Herndon Sql Portfolio
Jessica Herndon Sql PortfolioJessica Herndon Sql Portfolio
Jessica Herndon Sql Portfolio
 
SQL Server 2019 hotlap - WARDY IT Solutions
SQL Server 2019 hotlap - WARDY IT SolutionsSQL Server 2019 hotlap - WARDY IT Solutions
SQL Server 2019 hotlap - WARDY IT Solutions
 
Load data from Office365 to Snowflake in minutes
Load data from Office365 to Snowflake in minutesLoad data from Office365 to Snowflake in minutes
Load data from Office365 to Snowflake in minutes
 
Intro to Azure Data Factory v1
Intro to Azure Data Factory v1Intro to Azure Data Factory v1
Intro to Azure Data Factory v1
 
8+ years of experience in Java/J2EE technologies
8+ years of experience in Java/J2EE technologies8+ years of experience in Java/J2EE technologies
8+ years of experience in Java/J2EE technologies
 
Mstr meetup
Mstr meetupMstr meetup
Mstr meetup
 
Balamurugan msbi cv
Balamurugan msbi cvBalamurugan msbi cv
Balamurugan msbi cv
 
Colin\'s BI Portfolio
Colin\'s BI PortfolioColin\'s BI Portfolio
Colin\'s BI Portfolio
 
Shane_O'Neill_CV_slim
Shane_O'Neill_CV_slimShane_O'Neill_CV_slim
Shane_O'Neill_CV_slim
 
AnishNSheth_Business_Intelligence_Architect
AnishNSheth_Business_Intelligence_ArchitectAnishNSheth_Business_Intelligence_Architect
AnishNSheth_Business_Intelligence_Architect
 

Recently uploaded

Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Hyundai Motor Group
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 

Recently uploaded (20)

Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 

Lezlee Coulter SQl Server Portfolio

  • 1. SQL Server 2008R2 Lezlee Coulter lezlee99@comcast.net linkedin.com/pub/lezlee-coulter 443-871-5557
  • 2. Table of Contents  Introduction Why SetFocus?  Piggy Bank Developing and Implementing a SQL Server Database for a Banking Institution  T-SQL Queries Sample T-SQL Queries to include Merge, Recursive CTE’s, Pivot, Cross Apply  Mini-AdventureWorks Implentation of Database Development, SSIS Packages & SSRS Reports  Putting It All Together BLOCK 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.
  • 3. 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 ten-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 love. 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. But, 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
  • 4. SQL Server Master’s Curriculum  RDBMS Concepts  MS SQL Server 2008R2 T-SQL  Implementing a Microsoft SQL Server 2008R2 Database  Advanced T-SQL Querying and Programming  Microsoft SQL Server 2008R2 Integration Services  Microsoft SQL Server 2008R2 Reporting Services
  • 5. Piggy Bank Following 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.
  • 6.
  • 7. Transfer Funds • Declare proper Accounts for Transfer • Declare proper Balances based on AccountID • Withdraw and Update Account • Deposit and Update Account
  • 8. Verify opening balance based on Business Requirement • Ensure proper data entry Using SCOPE_IDENTITY() to Insert into Customer Account following Account Insert Cont’d
  • 9. Views A Current Month Bank Statement Utilizing Concatenation , Joins & Date Functions • Select Customer data, Account data & Transaction data to provide a statement based on the current month • Using INNER JOINS to retrieve a “match” for the Customer/Account
  • 10. T-SQL Queries The Merge Statement New in 2008: Insert & Update in One • Update target table when date and currencies match, BUT rate DOES NOT • Insert into target table when date and currencies DO NOT match
  • 11. Merge Results Taking advantage of Output $Action to review the results of the Merge
  • 12. T-SQL Queries Recursive CTE’s And again…
  • 14. T-SQL Queries Apply 2005 feature that allows us to ‘apply’ the results of a UDF to all the rows in a table The Function
  • 16. T-SQL Queries The Pivot Statement
  • 17. SSIS Package Uses a Merge Stored Procedure • Data Flow to Import Files • Inserts into a Temp Staging Table
  • 18. SSIS Package The Control Flow
  • 19. Mini-AdventureWorks Working 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
  • 21. Import Orders Inserts into the Details & Header Tables A Mail Task to Relay Results
  • 23. SSRS Stored Procedure for Required Report Utilizes Cross Apply and Rank Function
  • 24. SSRS Report Results from the Stored Procedure
  • 26. Group Roles Block-Flix Project Lead: Lezlee Coulter Developers: James Vaughn Theresa Rice Irina Zilbermanas Putting It All Together 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
  • 27. Online Store Kiosk Kiosk Database Kiosk Store Store Database Store Database Databas Database Database e Kiosk Kiosk Central Database Database Database Store Store Kiosk Database Database Kiosk Database Kiosk Database Database
  • 28. • Store and Kiosk databases mirror Central database to facilitate efficient import & export of data • Online Store utilizes Central Database • Access to database restricted through stored procedures • Import & Export of data through SSIS packages
  • 29. ER-Diagram Primary Key- Foreign Key Relationships
  • 30. Receiving a Shipment • New copies of existing titles are delivered • An .xls file is accompanied, electronically • File contains • MovieID’s • MediaTypeID’s (DVD or Blu-Ray) • Quantity • ID’s must be imported via SSIS
  • 31. SSIS Insert Existing Titles Into Inventory Control Flow : Moves processed files to a new location Send Tasks to relay success or failure
  • 32. SSIS DATA FLOW Inserting new copies of existing titles into inventory
  • 33. Stored Procedure to Insert Inventory Using the While Statement to ‘”loop” through the Quantity Inserts 10 copies of MovieID 11
  • 34. SSRS Report Procedures Most Rented Movies for Current Month • Counts TransactionID’s based on Movie Rentals • Groups by Title & Genre • Orders by Date desc
  • 35. Requested Report Based on Procedure, includes Company Name & Logo
  • 36. SSRS Report Procedures Most Active Customers for Current Month • Sums Transaction Types based on Movie Rentals • Groups by Members • Orders by Rentals desc
  • 37. Requested Report Based on Procedure, includes Company Name & Logo
  • 38. Managing Block Flix As the project lead, looking at the task as a whole, “seeing the forest”, was my main purpose. We had just one week in which to design and implement the databases and prepare a presentation. Which aspects needed to be fully functional? Which aspects were Phase Two? Where did my teammates’ strengths lie? Where do we need to be by week’s end and how do we get there? We normalized the data and created the databases. I distributed the procedures and the SSIS packages that call them. After we wrote the procedures to be called from user-interface applications, such as Transactions and CreateMember, I then focused on the procedures for the required reports and distributed the design. The challenge, for me, in this project was not as related to the technology as it was to “steering the ship” in the direction of success. It was a wonderful experience and one from which I learned to truly see all of our processes as a part of a whole.
  • 39. Topping It All Off… with a Trigger After Trigger Sets DateModified to GETDAT() on any Update Instead of Trigger Inhibits an update or delete of Transactions
  • 40. DDL Trigger A Safety Trigger to ensure that the tables are not dropped or altered
  • 41. Thank you! Please contact me with any questions. Lezlee Coulter 443-871-5557 lezlee99@comcast.net