Veal Johnson Sql Portfolio
description
Transcript of Veal Johnson Sql Portfolio
2
Table of Contents
Database Planning 3 Stored Procedures 5 SSRS 14 SSIS 19
3
Database Planning - Specifications
Create an entity relationship diagram for the database Junglebooks.
4
DataBase Planning - ERD
5
Stored Procedure: Specifications
For the purposes of this project, assume that policy concerning withdrawals, purchases via checkcard, and checks will be treated exactly the same It is recommended that you use a @transactionTypeID input parameter for a withdrawal/purchases procedure- rather than utilize three separate procedures. When designing your withdrawal/purchases procedure- it is not necessary to combine the use of both overdraft accounts. I.E. first check that they have a specific overdraft and that there is enough of a balance in the specific overdraft account- if there is not enough money there, do NOT attempt to utilize the remaining balance from that specific overdraft account. Check next that they have the general overdraft, and if so that the balance of the originating account would not slip below -$400.00 to see if the withdrawal/purchase should succeed.
To further explain this: you should NOT process a $150 withdrawal/purchase by applying $50 from the specific overdraft and then $100 from the general. If there is not enough in the specific overdraft account- it should be taken from the general overdraft in full (or refused if it exceeds the limits of the general overdraft).
6
Stored Procedure: uspDoWithdrawal
7
Stored Procedure: uspDoWithdrawal
8
Stored Procedure: uspDoWithDrawal
9
Stored Procedure: uspDoWithDrawal
10
Stored Procedure: uspDoWithdrawal
11
Stored Procedure: uspDoWithdrawal
12
Stored Procedure: uspDoWithDrawal
13
Stored Procedure: uspDoWithDrawal
14
SSRS – Project Specifications
Create a Top Purchases Ranking Report by Vendor. Report to show top selected vendors by rank plus the top selected products by rank per vendor for the date range selected. Report to allow a selection date range of purchase orders. Plus the number of Vendors and number of products to show.
15
SSRS - Top Sales Report Output
16
SSRS – Query Code to produce report
17
SSRS – Code to produce Report (UDF)
18
SSRS – Code to produce report (UDF)
19
SSIS – Project Specifications
Create SSIS packages to recreate the MiniAdventureWorks DB and load up vendor, product, and shipmethod master files. Load up the PurchaseOrderHeader and PurchaseOrderDetail files from .csv flat files.
Create a package to increase product prices 10% where ‘Mountain’ is in the product description.
20
SSIS – CreateDatabase.dtsx
21
SSIS – ImportProducts.dtsx
22
SSIS – ImportProducts.dtsx
23
SSIS – ImportVendors.dtsx
24
SSIS – ImportVendors.dtsx
25
SSIS – ImportShipMethod.dtsx
26
SSIS – ImportShipMethod.dtsx
27
SSIS – ImportOrders.dtsx
28
SSIS – ImportOrders.dtsx
29
SSIS - ImportOrders.dtsx
30
SSIS – ImportOrders.dtsx
31
SSIS – ImportOrders.dtsx
32
SSIS – UpdateProductPrices.dtsx
33
SSIS – UpdateProductPrices.dtsx