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

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Recently uploaded (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

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 />