veal johnson sql portfolio

33
Veal Johnson Huffman, TX 77336 [email protected] SQL Portfolio

Upload: vealj

Post on 17-May-2015

364 views

Category:

Documents


1 download

DESCRIPTION

SQL Portfolio

TRANSCRIPT

Page 1: Veal Johnson Sql Portfolio

Veal JohnsonHuffman, TX 77336

[email protected]

SQL Portfolio

Page 2: Veal Johnson Sql Portfolio

2

Table of Contents

Database Planning 3 Stored Procedures 5 SSRS 14 SSIS 19

Page 3: Veal Johnson Sql Portfolio

3

Database Planning - Specifications

Create an entity relationship diagram for the database Junglebooks.

Page 4: Veal Johnson Sql Portfolio

4

DataBase Planning - ERD

Page 5: Veal Johnson Sql Portfolio

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).

Page 6: Veal Johnson Sql Portfolio

6

Stored Procedure: uspDoWithdrawal

Page 7: Veal Johnson Sql Portfolio

7

Stored Procedure: uspDoWithdrawal

Page 8: Veal Johnson Sql Portfolio

8

Stored Procedure: uspDoWithDrawal

Page 9: Veal Johnson Sql Portfolio

9

Stored Procedure: uspDoWithDrawal

Page 10: Veal Johnson Sql Portfolio

10

Stored Procedure: uspDoWithdrawal

Page 11: Veal Johnson Sql Portfolio

11

Stored Procedure: uspDoWithdrawal

Page 12: Veal Johnson Sql Portfolio

12

Stored Procedure: uspDoWithDrawal

Page 13: Veal Johnson Sql Portfolio

13

Stored Procedure: uspDoWithDrawal

Page 14: Veal Johnson Sql Portfolio

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.

Page 15: Veal Johnson Sql Portfolio

15

SSRS - Top Sales Report Output

Page 16: Veal Johnson Sql Portfolio

16

SSRS – Query Code to produce report

Page 17: Veal Johnson Sql Portfolio

17

SSRS – Code to produce Report (UDF)

Page 18: Veal Johnson Sql Portfolio

18

SSRS – Code to produce report (UDF)

Page 19: Veal Johnson Sql Portfolio

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.

Page 20: Veal Johnson Sql Portfolio

20

SSIS – CreateDatabase.dtsx

Page 21: Veal Johnson Sql Portfolio

21

SSIS – ImportProducts.dtsx

Page 22: Veal Johnson Sql Portfolio

22

SSIS – ImportProducts.dtsx

Page 23: Veal Johnson Sql Portfolio

23

SSIS – ImportVendors.dtsx

Page 24: Veal Johnson Sql Portfolio

24

SSIS – ImportVendors.dtsx

Page 25: Veal Johnson Sql Portfolio

25

SSIS – ImportShipMethod.dtsx

Page 26: Veal Johnson Sql Portfolio

26

SSIS – ImportShipMethod.dtsx

Page 27: Veal Johnson Sql Portfolio

27

SSIS – ImportOrders.dtsx

Page 28: Veal Johnson Sql Portfolio

28

SSIS – ImportOrders.dtsx

Page 29: Veal Johnson Sql Portfolio

29

SSIS - ImportOrders.dtsx

Page 30: Veal Johnson Sql Portfolio

30

SSIS – ImportOrders.dtsx

Page 31: Veal Johnson Sql Portfolio

31

SSIS – ImportOrders.dtsx

Page 32: Veal Johnson Sql Portfolio

32

SSIS – UpdateProductPrices.dtsx

Page 33: Veal Johnson Sql Portfolio

33

SSIS – UpdateProductPrices.dtsx