bill greens power point portfolio

34
SQL Server database Portfolio Bill D. Green bdgreen@william- delaney.com (334)207-7836

Upload: soldierfc

Post on 27-May-2015

412 views

Category:

Documents


3 download

DESCRIPTION

• The SetFocus SQL Master’s Program is an intensive, hands–on, project oriented program allowing knowledge and valuable experience putting the SQL skill set to use in a simulated work environment.• I received over 300 hours of in-depths hands on experience focused on SQL. • SetFocus projects are real world projects that are distributed just as I would receive in a position. I received project specifications and was expected to identify best courses of action with deadlines set for completion.

TRANSCRIPT

Page 1: Bill Greens   Power Point Portfolio

SQL Server databasePortfolio

Bill D. [email protected](334)207-7836

Page 2: Bill Greens   Power Point Portfolio

Table of Contents

Banking Project Requirements ER Diagram Stored Procedure Example Trigger Example

Page 3: Bill Greens   Power Point Portfolio

Table of Contents(cont)

MiniAdventureWorksDBRequirementsSSIS PackagesSSRS ReportsDeployed Reports

Page 4: Bill Greens   Power Point Portfolio

Table of Contents

BlockFlix Movies ProjectBlockFlix RequirementsEntity Relationship DiagramReports DeployedPackages DeployedDB Maintenance

Page 5: Bill Greens   Power Point Portfolio

Table of Contents (cont.)

Database Administration ExamplesCreate DatabaseBack-up DatabaseRestore DatabaseRebuild IndexMaintenance Package in SSIS

Page 6: Bill Greens   Power Point Portfolio

Banking Project

• Requirements: Customers: We need to track the customers’ name, address, e-mail, home phone, work phone, mobile phone. The name, address and

the Home phone number is required. You will need to be able to both create a customer, and update the customers’ personal information.

Accounts: You are only required to support 2 types of accounts: Checking and Saving. Both accounts are tracked by an account

number that is assigned by us. The account number should be 6 digits. We would like the account number to be automatically generated and incremented by 1. One customer can open multiple accounts (and no limits as to how many accounts as long as an initial deposit of $20 for each checking/savings account is made- assume that for higher interest money market and savings accounts that a higher deposit will be expected-but that this is outside the scope of the current specs). You will need to create accounts for a given customer, and also have the ability to update these accounts (specifics for UpdateAccount are included later). Note that you can break these procedures up as you see fit, i.e. CreateChecking/CreateSavings in lieu of CreateAccount would be accepted for full credit, but throughout the spec the processes are referred to as CreateAccount and UpdateAccount. To allow for the variations we might receive- the rubric might list gradepoints for “can be created” or “can be updated”- meaning that there are different ways that you could approach the requirements and that ultimately we just want to see successful processes.

 

Page 7: Bill Greens   Power Point Portfolio

ER DiagramAccount

AccountID

AccountTypeID

AccountStatusID

CurrentBalance

OverDraftAccountID

GeneralOverdraft

AccountTypeAccountTypeID

AccountTypeName

interestRate

CustomerAccountCustomerAccountID

AccountID

CustomerID

AccountStatusAccountStatusID

AccountStatus

TransactionsTransactionID

AccountID

TransactionTypeID

CustomerID

TransactionDate

TransactionAmount

NewBalance

CustomerCustomerID

CustomerFirstName

CustomerLastName

CustomerMiddleInitial

Street

city

State

ZipCode

Email

HomePhone

WorkPhone

CellPhone

TransactionTypeTransactionTypeID

TransactionTypeName

Page 8: Bill Greens   Power Point Portfolio

Transfer Funds Sample Procedure

Page 9: Bill Greens   Power Point Portfolio

Alter/Drop Table Trigger

Page 10: Bill Greens   Power Point Portfolio

Function Example

Page 11: Bill Greens   Power Point Portfolio

Procedure Example

Page 12: Bill Greens   Power Point Portfolio

XML File

Page 13: Bill Greens   Power Point Portfolio

XML Shredding

Page 14: Bill Greens   Power Point Portfolio

MiniAdventureWorks Requirements: 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.

Mini-AD will provide everyone with a folder structure that contains the following:– C:\MiniAdventureWorks

• \SourceFiles(source CSV files)• \SSISProj (an empty SSIS Project structure)• \SSRSProj (an empty SSRS Project structure)• \DBBackup (a folder to backup the SQL Server database after you finish the project)

Page 15: Bill Greens   Power Point Portfolio

Import Orders Package

Page 16: Bill Greens   Power Point Portfolio

Import Products Procedure

Page 17: Bill Greens   Power Point Portfolio

SalesMatrixByYear Report

Page 18: Bill Greens   Power Point Portfolio

SalesMatrixByYear Deployed

Page 19: Bill Greens   Power Point Portfolio

RptTopSales Report

Page 20: Bill Greens   Power Point Portfolio

RptTopSales Deployed

Page 21: Bill Greens   Power Point Portfolio

BlockFlix Project

Requirements:BlockFlix will operate a central online database associated with regional distribution centers, as well as various store locations and kiosks

within supermarkets and other popular commercial locations. BlockFlix purchases movies in bulk through the purchasing department in corporate headquarters and distribute them to the stores (including

the distribution warehouses for the online “store”). The package of movies will be accompanied (electronically – i.e. service broker) by an xml file. This file contains a list of the movies. Sample files are included- although as the developers- you should modify these as you wish. The xml will contain Movie information (Title, Genre, Rating, Year, quantity, up to 3 actors, up to 2 producers, and up to 2 directors). You may either include all needed information in one xml file, or assume the purchasing department also maintains a ‘master list’ of Movie ID’s, and various cast and crew member ID’s, genres, ratings, etc.- in which case you should implement a 2nd process for local store ‘master lists’ to be updated via xml, SSIS or both at once- and then your “Add Movie” xml will only contain appropriate ‘identity’ values.

For the Online store, please develop a ‘queue’ whereby a customer will indicate the next titles that they desire to be mailed to them. As they

return movies via the envelopes that you provide (addressed to your nearest facility), movies at the top of the customer queues will be shipped to the customer as soon as possible in accordance with their membership agreements.

In-Store locations will also sell/rent video games, old and new movie inventory, video game systems, movie memorabilia, snack food and

drink. Such Sales should also be tracked. You may also sell old and new movie inventory from the online store. Kiosks are a standalone machine developed by BlockFlix, that only accept credit card payments, often at a $1 per day per DVD/Blu-Ray price.

They will have a limit of 200 movie titles, and a maximum of 1000 DVD’s/Blu-Rays per machine at any given time. The database design for Kiosks should be streamlined. These Kiosks will be maintained by local management in each geographic area (or via service agreements with local businesses).

Page 22: Bill Greens   Power Point Portfolio

TalentLoad Package

Page 23: Bill Greens   Power Point Portfolio

Report1_DamageDisk Deployed

Page 24: Bill Greens   Power Point Portfolio

BlockFlix Maintenance Job

Page 25: Bill Greens   Power Point Portfolio

Database Administration

Page 26: Bill Greens   Power Point Portfolio

Create a Database

Page 27: Bill Greens   Power Point Portfolio

Create A Database (cont.)

Page 28: Bill Greens   Power Point Portfolio

Back-up Database

Page 29: Bill Greens   Power Point Portfolio

Back-up Database (cont.)

Page 30: Bill Greens   Power Point Portfolio

Restore Database

Page 31: Bill Greens   Power Point Portfolio

Restore Database(cont.)

Page 32: Bill Greens   Power Point Portfolio

Restore Database (cont.)

Page 33: Bill Greens   Power Point Portfolio

Rebuild Indexes

Page 34: Bill Greens   Power Point Portfolio

Maintenance Package