Bing Zheng SQL Portfolio

Post on 17-May-2015

427 views 2 download

Tags:

Transcript of Bing Zheng SQL Portfolio

SQL Portfolio

Bing Zheng

Email: BingTZheng@gmail.com

Phone: 646-709-4371

Table of Contents

• JungleBooks• Library• Bank Project• SSIS/SSRS Project• BlockFlix

JungleBooks• JungleBooks is a book company which has a database consisting of books,

authors, orders, and customers.

• In this project a database diagram is given and a database is created according to the diagram.

• We are asked to create multiple queries for different forms of the application the client is building.

JungleBooks Database Diagram

Large Orders Page from JungleBooks

Expired Cards page from JungleBooks

Hot Items page from JungleBooks

Library• The Library Database is created to support the principle functions of a

lending library’s day-to-day operations.

• In this project a database diagram is given and a database is created according to the diagram.

• We are asked to create multiple queries for different forms of the application the client is building.

Library Database Diagram

Sample Library Query 1

Sample Library Query 2

Sample Library Query 3

Bank Project: PiggyBank• The PiggyBank Database simulates bank operations such as OverDraft

Accounts, Customer and Account Relationships, and Transactions.

• Create an Entity Relationship Diagram given some specifications such as Overdraft Fees, Error Information when a transaction fails, Login Failures, and Customer/Account relationships.

PiggyBank Database Diagram

PiggyBank Add Account Stored Procedure

PiggyBank Add Account Stored Procedure Cont.

PiggyBank Account Deposit Stored Procedure

SSIS/SSRS Project• For the SSIS (SQL Server Integration Services) portion, we created 6

packages in SQL Server Business Intelligence Development Studio. One package to create the database, four packages to import data from CSV files, and one to update the data.

– For the create database and update data, we just used an Execute SQL task in the Control Flow, while the others to import data we needed various tasks in the Data Flow.

• For the SSRS (SQL Server Reporting Services) portion, we created two reports: One was a sales matrix by year and the other was the top sales. We would also schedule report snapshots and subscriptions.

SSIS – Data Flow for Importing Products Package

SSIS – Control Flow for Importing Orders Package

SSRS – Data Flows for Importing Orders Package

SSRS – Sales Matrix By Year ReportIn this report there is a dropdown list of shipping methods the user can choose from.As displayed in the report, all the methods are selected.

SSRS – Sales Matrix By Year ReportIn this report the user can set the parameters of the start and end dates along with which number of top products and vendors you want. As displayed the dates are set to 4/20/1995 and 4/20/2011 with top 5 for both product and vendors.

BlockFlix• BlockFlix is our Final Group Project and it implemented almost all that I

have experienced in the program. A presentation was conducted by the group upon graduation.

• Some of the specification for this project included:– The database will be used to track inventory of movies, customers and their membership

types, and payments by customers.– Demo of inserting an XML file containing new releases into the database showing Title,

Genre, Rating, actors, producers, etc.– Each store has an individual database to keep track of local sales information which will

be uploaded to the central database.– Create reports for upper management and marketing department for lost/damaged

movies, most rented movies, most active customers, list of customers in each membership type, etc.

– Propose how to implement streaming online video rentals– Maintenance, Security, Backup, etc.

BlockFlix – Database Diagram

BlockFlix – XML FileThis is the XML File format used to load new movies into the database via SSIS.

BlockFlix – Report Customers in each Membership Type

BlockFlix – Report of Most Active Customers

BlockFlix – Report of Lost/Damaged Movies

BlockFlix – Video Streaming

• Archived Live Video OnDemand

• On demand avoids thin viewing stream due to the ‘stampede’ effect (everyone trying to view at once). This in turn reduces the need for heavy bandwidth and allows other resources to continue at standard expected levels.

BlockFlix – Backup and Maintenance

• Transaction log backup will occur daily at midnight across servers for all databases.

• A full database backup is also scheduled on every Sunday at midnight for all databases

• Filegroups exist for transactions, movies, and for customer and disk inventory.

• Each filegroup exist on its own terrabyte disk