SlideShare a Scribd company logo
1 of 15
.SQL PortfolioKevin PulsKNPuls@GMail.com(419) 343-6538<br />Table of Contents TOC  quot;
1-3quot;
    The Piggy Bank Project PAGEREF _Toc256677366  3        MakeWithdrawal PAGEREF _Toc256677367  4        MakeWithdrawal Code PAGEREF _Toc256677368  4The Adventure Works Repair Assignment PAGEREF _Toc256677369  7        Customer Billing Summary PAGEREF _Toc256677370  8        Customer Billing Summary Code PAGEREF _Toc256677371  8        Customer Billing Summary Results PAGEREF _Toc256677372  9SSIS/SSRS Project PAGEREF _Toc256677373  10        ImportProducts.dtsx PAGEREF _Toc256677374  11        ImportProducts.dtsx diagram PAGEREF _Toc256677376  11        ImportOrders.dtsx PAGEREF _Toc256677377  12        ImportOrders.dtsx diagram PAGEREF _Toc256677379  12        rptTopSales.rdl PAGEREF _Toc256677381  14        rptTopSales.rdl report PAGEREF _Toc256677383  14        rptSalesMatrixByYear.rdl PAGEREF _Toc256677384  15        rptSalesMatrixByYear.rdl report PAGEREF _Toc256677386  15<br />The Piggy Bank Project<br />The goal of this project was to implement a functioning bank database.  All outside interaction with the database is done with user stored procedures and views.  DDL Triggers were also implemented to prevent deletions.<br />The bank made use of two overdraft types. <br />One type is specific overdraft. A specific overdraft account could be set up for customers with more than one account who wished to use one in case of overdrafts. The other type was a general overdraft. The general overdraft allows a max overdraft of $400 not counting fees.  The specific overdraft fee is $10 while the general overdraft fee is $30. It is possible for the customer to use both (Not on the same transaction) or neither. Also the date in which an account went into overdraft needed to be logged.<br />A number of procedures were needed:<br />CreateCustomer, UpdateCustomer, CreateAccount, UpdateAccount, UpdateSavingsInterest, UpdateDailyAverageBalance, MakeDeposit, MakeTransfer, MakeWithdrawal, PayInterest, and FindCustomerInfo   <br />The views that were needed are:<br />GetTransactionHistory, GetAccountBalance, and GetCustomerAccounts<br />MakeWithdrawal<br />The MakeWithdrawal procedure (Seen below) was used when customers needed to withdrawal money from Piggy Bank. <br />MakeWithdrawal Code<br />The procedure began with basic parameter checking. Things like missing parameters, non-existents account or customers, inactive account, positive valued withdrawal, and available funds. <br />The main body of the procedure consisted of two parts. The first part determined which accounts (If any) were to be charged. It also determined the type of overdraft (If any) that was to be used. <br />The second main part withdrew the amount from the account(s) and applied any necessary fees. <br />The final part of the procedure only runs when there is an error. It rolls back any changes and displays an error message. <br />The Adventure Works Repair Assignment<br />The goal of this project assignment was to design SQL queries to provide the three unformatted reports requested. It was also necessary to design the database from the following specifications:  <br />A job is a group of repair items.  <br />Each repair item has an associated cost. <br />One job can have multiple repair items. <br />Each job has one customer. <br />Each job has a profit margin. <br />Each job moves through a workflow marked by a date: Date in , bid date, quote approved date, PO issued date, invoice date, paid in full<br />Customer Billing Summary<br />The report quot;
Customer Billing Summaryquot;
 represents an overview of the billing activity for each customer.  The data contains the following fields:<br />Customer name<br />Total number of jobs for this customer which have no payments<br />Total revenue for all jobs for this customer which have no payments<br />Total number of jobs for this customer which have an invoice but no payments<br />Total revenue for all for this customer which have an invoice but no payments<br />Total number of jobs for this customer which are paid in full<br />Total revenue for all jobs for this customer which are paid in full<br />Average revenue for all jobs for this customer which are paid in full<br />Total gross margin for all jobs for this customer which are paid in full<br />Average gross margin for all jobs for this customer which are paid in full<br />The data is sorted by quot;
Total revenue for all jobs for this customer which are paid in fullquot;
, highest to lowest.<br />Customer Billing Summary Code<br />Customer Billing Summary Results<br />SSIS/SSRS Project<br />The goal of this project was to design several SSIS (SQL Server Integration Services) packages that created a database called MiniAdventureWorksDB and then import data into the database. The database structure was given as well as the several comma delimited files to import data from.  Futhermore, SSRS (SQL Server Reporting Services) was used to create two reports (See below) using the imported data. The rptSalesMatixByYear was deployed using the SSRS Report Manager. With Report Manager it was auto-run, auto-emailed, and had a history stored. <br />The SSIS packages were designed to perform the following actions:<br />CreateDatabase.dtsx – Install/reinstall a database with only tables, constraints, and triggers loaded<br />ImportProducts.dtsx – See below<br />ImportVendors.dtsx – Import a list of vendors from a comma delimited file <br />ImportShipMethod.dtsx - Import a list of shipping methods (only new) from a comma delimited file <br />ImportOrders.dtsx – See below<br />ProductPriceIncrease.dtsx – Increase the price of product of a certain type<br />MasterPackage.dtsx – A package designed to run and rerun all the previously listed packages at once<br />   ImportProducts.dtsx<br />The ImportProducts package imports products from a comma delimited file. The package takes these products and either inserts or updates them. Updates will only work if a product has been modified. The package also emails the results to a specified recipient.   <br /> <br />ImportProducts.dtsx diagram<br />   ImportOrders.dtsx<br />The ImportOrders package imports order details and header information from any number of comma delimited file with the format PODATA_*.CSV to the proper table (POHeader or PODetail). The package moves the processed files to another folder.  Orders that do not have an associated vendor or product are output to a separate file that is emailed to a specified recipient. The results of the run are also emailed.    <br />ImportOrders.dtsx diagram<br />   <br />   rptTopSales.rdl<br />This report shows the total sales per vendor and per product for a user defined range of years. Vendors are ranked from most to least sales dollars. The vendor’s top products are also ranked by sales dollars.  The max rank for both vendors and products are user defined.   <br />rptTopSales.rdl report<br />    rptSalesMatrixByYear.rdl<br />This report shows the vendor sales per year. The report also shows the totals per year and per vendor, and it has a grand total.  The report can be filtered by shipping method. <br />rptSalesMatrixByYear.rdl report<br />5027930664845<br />
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work
Porfolio of Setfocus work

More Related Content

Similar to Porfolio of Setfocus work

Jazmine Kane Portfolio
Jazmine Kane PortfolioJazmine Kane Portfolio
Jazmine Kane PortfolioJazmine Kane
 
SetFocus SQL Portfolio
SetFocus SQL PortfolioSetFocus SQL Portfolio
SetFocus SQL Portfoliogeometro17
 
Gunavathi_Resume
Gunavathi_ResumeGunavathi_Resume
Gunavathi_Resumeguna vathi
 
What's New in Deltek Vision 7.3 | Deltek Vision User Group Meeting
What's New in Deltek Vision 7.3 | Deltek Vision User Group MeetingWhat's New in Deltek Vision 7.3 | Deltek Vision User Group Meeting
What's New in Deltek Vision 7.3 | Deltek Vision User Group MeetingBCS ProSoft
 
Jim Killian\'s SQL Server 2008 Portfolio
Jim Killian\'s SQL Server 2008 PortfolioJim Killian\'s SQL Server 2008 Portfolio
Jim Killian\'s SQL Server 2008 PortfolioJim Killian
 
Jessica Herndon Sql Portfolio
Jessica Herndon Sql PortfolioJessica Herndon Sql Portfolio
Jessica Herndon Sql PortfolioJessicaLHerndon
 
1.1 DetailsCase Study Scenario - Global Trading PLCGlobal Tra.docx
1.1 DetailsCase Study Scenario - Global Trading PLCGlobal Tra.docx1.1 DetailsCase Study Scenario - Global Trading PLCGlobal Tra.docx
1.1 DetailsCase Study Scenario - Global Trading PLCGlobal Tra.docxjackiewalcutt
 
Routing Jobsite Field Data for Approval and Billing in 4castplus
Routing Jobsite Field Data for Approval and Billing in 4castplusRouting Jobsite Field Data for Approval and Billing in 4castplus
Routing Jobsite Field Data for Approval and Billing in 4castplus4castplus
 
Case Study Scenario - Global Trading PLCGlobal Trading PLC is.docx
Case Study Scenario - Global Trading PLCGlobal Trading PLC is.docxCase Study Scenario - Global Trading PLCGlobal Trading PLC is.docx
Case Study Scenario - Global Trading PLCGlobal Trading PLC is.docxtidwellveronique
 
Microsoft Dynamics 365 Business Central Capability Guide
Microsoft Dynamics 365 Business Central Capability GuideMicrosoft Dynamics 365 Business Central Capability Guide
Microsoft Dynamics 365 Business Central Capability GuideDynamics Square
 
Resume John Stires Il
Resume John Stires IlResume John Stires Il
Resume John Stires Ilpencarver
 
Check printing in_r12
Check printing in_r12Check printing in_r12
Check printing in_r12Rajesh Khatri
 
Accounts receivable process
Accounts receivable processAccounts receivable process
Accounts receivable processSachinh08
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar15
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar15
 
Rodney Matejek Portfolio
Rodney Matejek PortfolioRodney Matejek Portfolio
Rodney Matejek Portfoliormatejek
 
Endeca information discovery for Oracle Receivables ( EBS)
Endeca information discovery for Oracle Receivables ( EBS)Endeca information discovery for Oracle Receivables ( EBS)
Endeca information discovery for Oracle Receivables ( EBS)Bizinsight Consulting Inc
 

Similar to Porfolio of Setfocus work (20)

Jazmine Kane Portfolio
Jazmine Kane PortfolioJazmine Kane Portfolio
Jazmine Kane Portfolio
 
SetFocus SQL Portfolio
SetFocus SQL PortfolioSetFocus SQL Portfolio
SetFocus SQL Portfolio
 
Gunavathi_Resume
Gunavathi_ResumeGunavathi_Resume
Gunavathi_Resume
 
What's New in Deltek Vision 7.3 | Deltek Vision User Group Meeting
What's New in Deltek Vision 7.3 | Deltek Vision User Group MeetingWhat's New in Deltek Vision 7.3 | Deltek Vision User Group Meeting
What's New in Deltek Vision 7.3 | Deltek Vision User Group Meeting
 
Jim Killian\'s SQL Server 2008 Portfolio
Jim Killian\'s SQL Server 2008 PortfolioJim Killian\'s SQL Server 2008 Portfolio
Jim Killian\'s SQL Server 2008 Portfolio
 
Jessica Herndon Sql Portfolio
Jessica Herndon Sql PortfolioJessica Herndon Sql Portfolio
Jessica Herndon Sql Portfolio
 
Trio base overview
Trio base overviewTrio base overview
Trio base overview
 
1.1 DetailsCase Study Scenario - Global Trading PLCGlobal Tra.docx
1.1 DetailsCase Study Scenario - Global Trading PLCGlobal Tra.docx1.1 DetailsCase Study Scenario - Global Trading PLCGlobal Tra.docx
1.1 DetailsCase Study Scenario - Global Trading PLCGlobal Tra.docx
 
Routing Jobsite Field Data for Approval and Billing in 4castplus
Routing Jobsite Field Data for Approval and Billing in 4castplusRouting Jobsite Field Data for Approval and Billing in 4castplus
Routing Jobsite Field Data for Approval and Billing in 4castplus
 
Case Study Scenario - Global Trading PLCGlobal Trading PLC is.docx
Case Study Scenario - Global Trading PLCGlobal Trading PLC is.docxCase Study Scenario - Global Trading PLCGlobal Trading PLC is.docx
Case Study Scenario - Global Trading PLCGlobal Trading PLC is.docx
 
Microsoft Dynamics 365 Business Central Capability Guide
Microsoft Dynamics 365 Business Central Capability GuideMicrosoft Dynamics 365 Business Central Capability Guide
Microsoft Dynamics 365 Business Central Capability Guide
 
Resume John Stires Il
Resume John Stires IlResume John Stires Il
Resume John Stires Il
 
Check printing in_r12
Check printing in_r12Check printing in_r12
Check printing in_r12
 
ACCRUAL ENGINE.docx
ACCRUAL ENGINE.docxACCRUAL ENGINE.docx
ACCRUAL ENGINE.docx
 
Nithin(1)
Nithin(1)Nithin(1)
Nithin(1)
 
Accounts receivable process
Accounts receivable processAccounts receivable process
Accounts receivable process
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat Portfolio
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat Portfolio
 
Rodney Matejek Portfolio
Rodney Matejek PortfolioRodney Matejek Portfolio
Rodney Matejek Portfolio
 
Endeca information discovery for Oracle Receivables ( EBS)
Endeca information discovery for Oracle Receivables ( EBS)Endeca information discovery for Oracle Receivables ( EBS)
Endeca information discovery for Oracle Receivables ( EBS)
 

Recently uploaded

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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
 
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
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
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
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
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
 
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
 

Recently uploaded (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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...
 
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...
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
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
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
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
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
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
 

Porfolio of Setfocus work

  • 1. .SQL PortfolioKevin PulsKNPuls@GMail.com(419) 343-6538<br />Table of Contents TOC quot; 1-3quot; The Piggy Bank Project PAGEREF _Toc256677366 3 MakeWithdrawal PAGEREF _Toc256677367 4 MakeWithdrawal Code PAGEREF _Toc256677368 4The Adventure Works Repair Assignment PAGEREF _Toc256677369 7 Customer Billing Summary PAGEREF _Toc256677370 8 Customer Billing Summary Code PAGEREF _Toc256677371 8 Customer Billing Summary Results PAGEREF _Toc256677372 9SSIS/SSRS Project PAGEREF _Toc256677373 10 ImportProducts.dtsx PAGEREF _Toc256677374 11 ImportProducts.dtsx diagram PAGEREF _Toc256677376 11 ImportOrders.dtsx PAGEREF _Toc256677377 12 ImportOrders.dtsx diagram PAGEREF _Toc256677379 12 rptTopSales.rdl PAGEREF _Toc256677381 14 rptTopSales.rdl report PAGEREF _Toc256677383 14 rptSalesMatrixByYear.rdl PAGEREF _Toc256677384 15 rptSalesMatrixByYear.rdl report PAGEREF _Toc256677386 15<br />The Piggy Bank Project<br />The goal of this project was to implement a functioning bank database. All outside interaction with the database is done with user stored procedures and views. DDL Triggers were also implemented to prevent deletions.<br />The bank made use of two overdraft types. <br />One type is specific overdraft. A specific overdraft account could be set up for customers with more than one account who wished to use one in case of overdrafts. The other type was a general overdraft. The general overdraft allows a max overdraft of $400 not counting fees. The specific overdraft fee is $10 while the general overdraft fee is $30. It is possible for the customer to use both (Not on the same transaction) or neither. Also the date in which an account went into overdraft needed to be logged.<br />A number of procedures were needed:<br />CreateCustomer, UpdateCustomer, CreateAccount, UpdateAccount, UpdateSavingsInterest, UpdateDailyAverageBalance, MakeDeposit, MakeTransfer, MakeWithdrawal, PayInterest, and FindCustomerInfo <br />The views that were needed are:<br />GetTransactionHistory, GetAccountBalance, and GetCustomerAccounts<br />MakeWithdrawal<br />The MakeWithdrawal procedure (Seen below) was used when customers needed to withdrawal money from Piggy Bank. <br />MakeWithdrawal Code<br />The procedure began with basic parameter checking. Things like missing parameters, non-existents account or customers, inactive account, positive valued withdrawal, and available funds. <br />The main body of the procedure consisted of two parts. The first part determined which accounts (If any) were to be charged. It also determined the type of overdraft (If any) that was to be used. <br />The second main part withdrew the amount from the account(s) and applied any necessary fees. <br />The final part of the procedure only runs when there is an error. It rolls back any changes and displays an error message. <br />The Adventure Works Repair Assignment<br />The goal of this project assignment was to design SQL queries to provide the three unformatted reports requested. It was also necessary to design the database from the following specifications: <br />A job is a group of repair items. <br />Each repair item has an associated cost. <br />One job can have multiple repair items. <br />Each job has one customer. <br />Each job has a profit margin. <br />Each job moves through a workflow marked by a date: Date in , bid date, quote approved date, PO issued date, invoice date, paid in full<br />Customer Billing Summary<br />The report quot; Customer Billing Summaryquot; represents an overview of the billing activity for each customer. The data contains the following fields:<br />Customer name<br />Total number of jobs for this customer which have no payments<br />Total revenue for all jobs for this customer which have no payments<br />Total number of jobs for this customer which have an invoice but no payments<br />Total revenue for all for this customer which have an invoice but no payments<br />Total number of jobs for this customer which are paid in full<br />Total revenue for all jobs for this customer which are paid in full<br />Average revenue for all jobs for this customer which are paid in full<br />Total gross margin for all jobs for this customer which are paid in full<br />Average gross margin for all jobs for this customer which are paid in full<br />The data is sorted by quot; Total revenue for all jobs for this customer which are paid in fullquot; , highest to lowest.<br />Customer Billing Summary Code<br />Customer Billing Summary Results<br />SSIS/SSRS Project<br />The goal of this project was to design several SSIS (SQL Server Integration Services) packages that created a database called MiniAdventureWorksDB and then import data into the database. The database structure was given as well as the several comma delimited files to import data from. Futhermore, SSRS (SQL Server Reporting Services) was used to create two reports (See below) using the imported data. The rptSalesMatixByYear was deployed using the SSRS Report Manager. With Report Manager it was auto-run, auto-emailed, and had a history stored. <br />The SSIS packages were designed to perform the following actions:<br />CreateDatabase.dtsx – Install/reinstall a database with only tables, constraints, and triggers loaded<br />ImportProducts.dtsx – See below<br />ImportVendors.dtsx – Import a list of vendors from a comma delimited file <br />ImportShipMethod.dtsx - Import a list of shipping methods (only new) from a comma delimited file <br />ImportOrders.dtsx – See below<br />ProductPriceIncrease.dtsx – Increase the price of product of a certain type<br />MasterPackage.dtsx – A package designed to run and rerun all the previously listed packages at once<br /> ImportProducts.dtsx<br />The ImportProducts package imports products from a comma delimited file. The package takes these products and either inserts or updates them. Updates will only work if a product has been modified. The package also emails the results to a specified recipient. <br /> <br />ImportProducts.dtsx diagram<br /> ImportOrders.dtsx<br />The ImportOrders package imports order details and header information from any number of comma delimited file with the format PODATA_*.CSV to the proper table (POHeader or PODetail). The package moves the processed files to another folder. Orders that do not have an associated vendor or product are output to a separate file that is emailed to a specified recipient. The results of the run are also emailed. <br />ImportOrders.dtsx diagram<br /> <br /> rptTopSales.rdl<br />This report shows the total sales per vendor and per product for a user defined range of years. Vendors are ranked from most to least sales dollars. The vendor’s top products are also ranked by sales dollars. The max rank for both vendors and products are user defined. <br />rptTopSales.rdl report<br /> rptSalesMatrixByYear.rdl<br />This report shows the vendor sales per year. The report also shows the totals per year and per vendor, and it has a grand total. The report can be filtered by shipping method. <br />rptSalesMatrixByYear.rdl report<br />5027930664845<br />