2. TABLE OF CONTENTS
Introduction………………... 3
JungleBooks………………. 4
Library……………………… 7
PiggyBank…………………. 10
MiniAdventureWorks2008.. 26
BlockFlix…………………… 33
About Me…………………... 42
3. INTRODUCTION
The following portfolio contains examples of my development skills in MS SQL Server 2008 R2. It is
a direct result of my work during a 9-week hands-on involvement with the SetFocus SQL Master’s
Program.
SetFocus utilizes Microsoft Official Curriculum in conjunction with its own materials to produce some
of the following coursework:
Querying using Transact SQL
Implementing and maintaining a MS SQL Server 2008 R2 Database
Designing an MS SQL Server 2008 R2 Infrastructure
Designing Security for MS SQL Server 2008 R2
Designing High Level Availability Database Solutions using MS SQL Server 2008 R2
Troubleshooting and Optimizing Database Servers using MS SQL Server 2008 R2
SQL Server 2008 R2 Integration Services
SQL Server 2008 R2 Reporting Services
In addition to the coursework and programming labs, the program included challenging real -world
projects where I have applied the skills practiced in class.
4. JUNGLEBOOKS PROJECT
JungleBooks is a book company which has a database consisting of Books, Authors, Orders
and Customers. A database diagram is given and the database is created according to the
diagram.
It is assumed, we are working with an application programmer who is building a client
application using the .NET environment. We are asked to create queries for different forms of
the application.
5. JUNGLEBOOKS SEARCH FOR AUTHORS
For example, The ‘Search for Authors’ form allows a user to search for Authors with a
last name starting with a particular letter. The user inputs ‘B’ in the txtLastName form
field we are asked to return ID, and Name. Making the assumption compound
names are hyphenated (i.e. Billy-Bob Hicks).
6. JUNGLEBOOKS LARGE ORDERS PAGE
The Large Orders page is a report displaying the largest number of items sold per
order. Display the Order ID, Customer ID and Name along with the total number of
items they ordered. Display the record with the largest quantity first. Alias as ‘Order
ID’, ‘Cust ID’, ‘Customer’ and ‘# of Items’.
7. LIBRARY PROJECT
The Library Database was created to support the principal functions of a library’s
daily operations. Create SQL Scripts using Union, Case Statements, Temporary
Tables and Aggregates according to the diagram.
8. LIBRARY GET ADULT/JUVENILE RESERVATIONS I
This query uses a Union to combine the results of Adults and Juveniles who have reserved
ISBN 288.
9. LIBRARY GET ADULT/JUVENILE RESERVATIONS II
This query returns the same result set as the previous slide using a Case Statement instead
of a Union.
10. PIGGY BANK PROJECT
The Piggy Bank Database simulates bank operations such as Overdraft Accounts,
Customer and Account relationships and Transactions.
Create a Normalized Database.
Create Tables with Primary Keys, Foreign Keys, Identity Columns, Check Constraints, Un-
clustered Indexes, Triggers preventing deletion/modification of data.
Create Stored Procedures with parameter validation and error handling using Begin Try /
End Try, Begin Catch / End Catch.
Create User Defined Data Types, Functions and Views.
12. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE
Withdrawal – Purchase and Transfer actions prevent negative balance that exceeds 0,
$400 for general overdraft, or that of 0 for accounts with an overdraft account. Apply
fees immediately against remaining overdraft amount (fees are automatic even if it causes
a negative balance, or one that exceeds overdraft limits).
13. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
14. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
15. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
16. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
17. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
18. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
19. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
20. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
21. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
22. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
23. PIGGY BANK CREATE A WITHDRAWAL / CHECK /
PURCHASE STORED PROCEDURE continued
24. PIGGY BANK CREATE A VIEW CUSTOMER
ACCOUNT HISTORY BY MONTH
Customer Account History for any month (full month) – pass in month year and account id.
25. TRANSACTION TABLE DELETE TRIGGER
To protect the integrity of the Transaction Table an after delete Trigger was created to
prevent deletions to the table, by rolling back the transaction
26. MINIADVENTUREWORKS2008 R2 PROJECT
The MiniAdventureWorks2008 project allowed us to work with SQL Server Integration Services
(SSIS) and SQL Server Reporting Services (SSRS).
The company Mini-AD (short for Mini-AdventureWorks) is interested in taking historical
spreadsheet (CSV) data for their list of products, vendors, and purchase order history, and
loading the data into a SQL Server database.
Mini-AD wants the load process to work on a go-forward basis, so that new / modified
products/vendors/orders can be loaded in SQL Server as well
Mini-AD’s load process for orders should validate that any incoming orders with product
numbers or vendor numbers that do not match an existing product/vendor number should
NOT be written to the SQL Server database. Instead, this data should be written to an
exception file and emailed.
Mini-AD also wishes to build two reports : one for top vendor and product sales, and the
second for sales by vendor and ship method across years.
27. SSIS PROCESS IMPORT ORDERS DATA
Import the contents of each .csv file (base name PODATA_*.csv) into the PurchaseOrderHeader and
PurchaseOrderDetail tables in the MiniAdventureWorksDB.
30. SSRS REPORT VENDOR SALES BY YEAR DESIGN
This report uses two Data Sets. MiniAdventureWorks and dsShipMethod .
DsShipMethod is used to create a parameter drop down list box.
31. SSRS REPORT VENDOR SALES BY YEAR
Vendor Sales by Year Results showing ZY – Express selected from the drop down list box
with annotations for Parameter chosen, Page X of Y, Date Run and Run By.
32. SSRS REPORT TOP VENDOR / PRODUCT SALES
Top Vendor / Product Sales Report has user to select date range parameters, number of
vendors and number of products, will Rank Product within Ranked Vendors.
Report shown is for 10/1/2001 thru 10//01/2004 for top 2 vendors and top 2 products.
34. BLOCKFLIX A TEAM PROJECT REQUIREMENTS
Blockflix is a new and upcoming Movie rental company.
They have opened a few stores nationwide and are in the process of
creating a centralized database for tracking inventory, sales, customers and
memberships.
They have purchased SQL Server 2008 and need a new database created.
The database will be used to track inventory of movies, customers and their
membership types, and payments by customers.
A new website will be created that uses the database to allow customers to
rent movies online. This Web site requires the database to be completely
functional. All access to the database must be restricted through stored
procedures.
35. DEVELOPMENT TASKS
Design Database
Create Test Data to ensure programmability and error free environment
Create XML File format to receive data from purchasing department
Create Stored Procedures for processing and lookups
Create SSRS Packages
Create SSIS Packages
42. ABOUT ME
I am a software developer with over 12 years of experience. I have previously programmed in
VB SCRIPT, VB 6.0, VB.NET, C#.NET, SQL SERVER 7.0 and INFORMIX. I have used the VISIO
API, Netviz API, Adobe Photoshop, Illustrator, Dreamweaver and several 3 rd party tools.
My employment history has included, Investment firms, A Card Marketing Company, A Software
Vendor, the US Government Department of the Army, Security Clearance - Secret. I have owned
and managed a Medical Spa business for several years.
After owning my own Medical Spa business for 7 years an opportunity came along to sell. I am
assisting the new owner as necessary while they become familiar with the business.
I was then hired to work on a back-office conversion project with Hudson Securities After
completing the project I attended Brookdale Community College and completed a certificate course
for Electronic Health Records.
Finding it difficult to find a position in the EHR field, I decided to attend the SetFocus SQL
Server 2008 R2 Masters Program to update and improve my skills in SQL Server.
I am currently seeking a Database Developer / Administrator position where I can use the skills
I have developed during my previous work experience and the new skills I have learned while
attending SetFocus.