Your SlideShare is downloading. ×
0
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Sql portfolio piggy_bank
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Sql portfolio piggy_bank

344

Published on

Published in: Career
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
344
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1.
    • .SQL Portfolio
    • Name
    • Email
  • 2.
    • Introduction: Create a banking database to handle 2 account types at this time, savings and checking.
    • Project Goals: Process transactions (withdraw, deposit, interest, fees), open, suspend, and reactivate accounts. Track customer information.
  • 3.
    • Create ERD Diagram
    • Shred in XML data
    • Stored Procedures to handle processes
  • 4.  
  • 5.
    • <Customer ID=&quot;1&quot; FirstName=&quot;John&quot; LastName=&quot;Doe&quot; Street=&quot;123 Fake Street&quot; City=&quot;Anytown&quot; State=&quot;NY&quot; zipcode=&quot;11280&quot; HomePhone=&quot;555-123-4567&quot; WorkPhone=&quot;555-456-7890&quot; MobilePhone=&quot;555-111-2345&quot; EMail=&quot;jDoe@someweb.com&quot;>
    • <Accounts>
    • <Saving ID=&quot;100000&quot; Balance=&quot;548.25&quot; AccountStatusId=&quot;1&quot;>
    • <Transaction>
    • <Transaction ID=&quot;1&quot; TransactionTypeID=&quot;Initial Deposit&quot; Date=&quot;4/01/2007&quot; TransactionAmount=&quot;500.00&quot; NewBalance=&quot;500.00&quot; />
    • <Transaction ID=&quot;5&quot; TransactionTypeID=&quot;Deposit&quot; Date=&quot;4/01/2007&quot; TransactionAmount=&quot;50.00&quot; NewBalance=&quot;550.00&quot; />
    • <Transaction ID=&quot;9&quot; TransactionTypeID=&quot;Withdraw&quot; Date=&quot;4/01/2007&quot; TransactionAmount=&quot;1.75&quot; NewBalance=&quot;548.25&quot; />
    • </Transaction>
    • </Saving>
    • <Checking ID=&quot;100001&quot; Balance=&quot;650.00&quot; AccountStatusId=&quot;1&quot; OverdraftAccount=&quot;100000&quot;>
    • <Transaction>
    • <Transaction ID=&quot;4&quot; TransactionTypeID=&quot;Initial Deposit&quot; Date=&quot;4/01/2007&quot; TransactionAmount=&quot;450.00&quot; NewBalance=&quot;450.00&quot; />
    • <Transaction ID=&quot;6&quot; TransactionTypeID=&quot;Deposit&quot; Date=&quot;4/01/2007&quot; TransactionAmount=&quot;50.00&quot; NewBalance=&quot;500.00&quot; />
    • <Transaction ID=&quot;44&quot; TransactionTypeID=&quot;Deposit&quot; Date=&quot;4/01/2007&quot; TransactionAmount=&quot;150.00&quot; NewBalance=&quot;650.00&quot; />
    • </Transaction>
    • </Checking>
    • </Accounts>
    • </Customer>
    • -- Insert Customer information into Cust.Customer table
    • set identity_insert dbo.Customer on -- allow insert into identity column
    • Insert into dbo.Customer (CustomerID, FirstName, LastName, Address1, City, State, ZipCode, HomePhone, WorkPhone, CellPhone, EMail)
    • Select * from
    • OPENXML (@docHandle, '/Bank/Customer', 1)
    • with (ID int,
    • FirstName nvarchar(15),
    • LastName nvarchar(20),
    • Street nvarchar(30),
    • City nvarchar(20),
    • State nchar(2),
    • zipcode nchar(5),
    • HomePhone nvarchar(13),
    • WorkPhone nvarchar(13),
    • MobilePhone nvarchar(13),
    • EMail nvarchar(30)
    • )
    • set identity_insert dbo.Customer off -- Turn off identity insert after insert has been completed
  • 6.
    • Add General Overdraft
    • Add New Customer
    • Add Overdraft Account
    • Close Account
    • Create Checking Account
    • Create Savings Account
    • Deactivate Account
    • Deposit
    • Get Account Balance
    • Get Transfer for Last Month
    • Reactivate Account
    • Transfer
    • Update Account
    • Update Customer
    • Update Interest Rate
    • Withdraw
  • 7.  
  • 8.  
  • 9.  
  • 10.  
  • 11.
    • Account History Any Month
    • Account History Current Month
    • Account History Past Month
    • Account Details
  • 12.  
  • 13.  

×