SetFocus SQL Portfolio

830 views
786 views

Published on

1 Comment
0 Likes
Statistics
Notes
  • The organization of your presentation was excellent. Did you find the portofolio presentation helpful in the interview? If so, how did it help to add value?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total views
830
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
14
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

SetFocus SQL Portfolio

  1. 1. <ul><li>SQL Portfolio </li></ul><ul><li>Jorge I. Giraldo </li></ul><ul><li>[email_address] </li></ul><ul><li>(201) 562-2314 </li></ul>
  2. 2. <ul><li>Piggy Bank Project ……………………………………………………………………………………………………………p.3 </li></ul><ul><li>Piggy Bank Diagram …………………………………………………………………………………………………….…...p.4 </li></ul><ul><li>Create Deposit Stored Procedure …………………………………………………………………………………….…..p.5 </li></ul><ul><li>Create Withdrawal Stored Procedure ……………………………………………………………………………..……..p.6 </li></ul><ul><li>Update Account and Add Customer Stored Procedure …………………………………………………………..….p.7 </li></ul><ul><li>Views …………………………………………………………………………………………………………………………..p.8 </li></ul><ul><li>DDL Triggers ……………………………………………………………………………………………………………..….p. 9 </li></ul><ul><li>DBA Practicals ……………………………………………………………………………………………………………….p.10 </li></ul><ul><li>Backup of EmployeeWorkHistory file group ……………………………………………………………………..…...p.11 </li></ul><ul><li>Creating Snapshot and Reverting Database to Snapshot ……………………………………………………..…..p.12 </li></ul><ul><li>Creating Sales Manager Role ……………………………………………………………………………………….…...p.13 </li></ul><ul><li>Configuring Distribution on the Default Instance ……………………………………………………………….....p.14 </li></ul><ul><li>SSIS/SSRS Project …………………………………………………………………………………………………….…….p.15 </li></ul><ul><li>ImportVendors Package …………………………………………………………………………………………….……p.16 </li></ul><ul><li>ImportOrders Package ……………………………………………………………………………………………….…..p.17 </li></ul><ul><li>Vendor Sales By Year Design ……………………………………………………………………………………….…..p.18 </li></ul><ul><li>Vendor Sales By Year Report ……………………………………………………………………………………….......p.19 </li></ul><ul><li>What is SetFocus …………………………………………………………………………………………………….…….p.20 </li></ul>
  3. 3. <ul><li>The focus of this project is to create a database for a bank utilizing stored procedures, functions, views, as well as DDL and DML triggers. Some of the functionalities of the database include: </li></ul><ul><li>- Creating and updating customer information. </li></ul><ul><li>- Creating and updating customer accounts. </li></ul><ul><li>- Adding a new customer to an existing account. </li></ul><ul><li>- Performing transactions such as deposits, withdrawals </li></ul><ul><li>and money transfers. </li></ul><ul><li>- Charging overdraft fees as well as additional applicable fees to both </li></ul><ul><li>Checking and Savings accounts. </li></ul><ul><li>- Opening and closing accounts. </li></ul><ul><li>- Applying interest rates to savings accounts. </li></ul><ul><li>- Preventing accounts deletions. </li></ul><ul><li>- Obtaining account history for both current month as well as any </li></ul><ul><li>month. </li></ul><ul><li>- Queries to search for customers by name, phone number and account number </li></ul>
  4. 5. Input Parameters: @AccountID, @CustomerID, @Transaction Amount. Once the procedure checks to see if the account is active and the transaction amount is greater than 0 new values are inserted into the Transactions table and the Balance in the Accounts table is updated.
  5. 6. Input Parameters: @AccountID, CustomerID, @TransactionAmount. This procedure validates to make sure the customer is associated with the account and to make sure the account is active. Once all the validations are checked new values are inserted into the Transactions table.
  6. 7. Input Parameters: @AccountID, @CustomerID, @UpdateType, @NewBalance, @SpecificOverdraftAccountID, GeneralOverdraft. Output Parameters: @CustomerAccountID. Validations: 1)Do not allow for a customer to be added to an account more than once. 2) Account cannot be reopen with less than $20. 3) Account cannot be closed unless balance is $0. Inserts: CustomerAccount table. Updates: AccountStatus
  7. 8. The vBalance view is called by the GetBalance Stored Procedure to show the current balance with the last 5 transactions. The vCustomerAccountInfo view is called by the CustomerAccountInfo stored procedure to obtain statements by either CustomerID or AccountNumber. The vTransactionsView is called by the GetTransactions stored procedure to show transactions on a particular account for the past 30 days.
  8. 9. Use DDL triggers to prevent customer accounts and transactions from being accidently deleted.
  9. 10. <ul><li>The following practical exercises will work primarily in the Adventureworks2008 </li></ul><ul><li>Database. </li></ul><ul><li>The main objectives are as follows: </li></ul><ul><li>-Install and configure SQL Server 2008. </li></ul><ul><li>-Manage database files. </li></ul><ul><li>-Backup and restore databases (please use FFILEUSERS). </li></ul><ul><li>-Manage security. </li></ul><ul><li>-Transfer data into and out of SQL Server. </li></ul><ul><li>-Automate administrative tasks. </li></ul><ul><li>-Replicate data between SQL Server instances. </li></ul><ul><li>-Maintain high availability. </li></ul><ul><li>-Monitor SQL Server. </li></ul>
  10. 11. Create a new filegroup, EmployeeWorkHistoryFG, containing one file, EmpWorkHist.ndf, in the default data directory of the default SQL Server 2008 instance. The data file should have an initial size of 100MB and should not allow for autogrowth.
  11. 12. You have been assigned the task of creating a database snapshot that will allow the database to be recovered from the database snapshot, often referred to as reverting to the database snapshot.
  12. 13. Riley is the first employee hired that will need access to select records from all tables in the Sales schema. In the upcoming weeks, several other Sales Managers will be hired, all of which will require the same access as Riley Using the principle of least privilege, give Riley and her future colleagues the minimal permissions necessary to perform their tasks.
  13. 14. The Adventureworks company has decided that Production.Product data should be maintained at all three locations. The headquarters office, which is the default instance, should be the publisher and distributor. SQLInstance2 and SQLInstance3 will be subscribers in a transactional replication scenario that supports immediate updating subscribers.
  14. 15. <ul><li>You’ll create an SSIS project with 6 packages – most of them will import data from CSV files into a new database that you’ll create </li></ul><ul><li>You’ll create an SSRS project with 2 reports, and you’ll schedule one of them for a report snapshot and subscription </li></ul><ul><li>At the end, you’ll email your database backup and SSIS packages and SSRS reports to the email address [email_address] </li></ul>
  15. 16. <ul><ul><li>Add tasks to the package to import the contents of the CSV file VendorMaster.CSV into the Vendor table in MiniAdventureWorksDB. </li></ul></ul><ul><ul><li>Write the package so that any input row with a VendorNumber that is not found in the Vendor table will be inserted. </li></ul></ul><ul><ul><li>Write the package so that any input row with a Vendor number that IS found in the Vendor table will be updated, but only if any of the other columns have changed. </li></ul></ul>
  16. 17. <ul><ul><li>Add tasks to the package to import the contents of each CSV file with the base name of PODATA_*.CSV into the PurchaseOrderHeader and PurchaseOrderDetail tables in MiniAdventureWorksDB. </li></ul></ul><ul><ul><li>Loop through all files with the name of PODATA_*.CSV </li></ul></ul><ul><ul><li>As you process files, move them to the folder C:SQLProjectOutputFilesPROCESSED (create the folder if it does not exist), so that they are not processed a 2 nd time </li></ul></ul>
  17. 18. <ul><ul><li>Parameters: ShipMethod (user can select 1 or more Ship Method Names). </li></ul></ul><ul><ul><li>Report annotations: Show the Ship Method Name(s) selected, the report title (“Vendor Sales by Year”), the date/time executed, the user who run the report, and the Page X of Y annotation. </li></ul></ul><ul><ul><li>Report should show 1 line for each Vendor, along with sales for each year (hint: in the query, summarize TotalDue and group by the year of OrderDate). </li></ul></ul>
  18. 20. <ul><li>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. </li></ul><ul><li>I received over 300 hours of in-depths hands on experience focused on SQL Development. </li></ul><ul><li>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. </li></ul>

×