SlideShare a Scribd company logo
.SQL Portfolio Name Email
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.
Create ERD Diagram Shred in XML data Stored Procedures to handle processes
 
<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
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
 
 
 
 
Account History Any Month Account History Current Month Account History Past Month Account Details
 
 

More Related Content

PPT
Ub D Mitchell
PDF
Metro area Market Data
PPT
Sql portfolio admin_practicals
PPT
KRG Retail Presentation1
PPT
Ub D Mitchell
PPT
Ea S Presentation Mc D 20090824
PDF
開発環境の今昔
PPT
Ub D Mitchell
Metro area Market Data
Sql portfolio admin_practicals
KRG Retail Presentation1
Ub D Mitchell
Ea S Presentation Mc D 20090824
開発環境の今昔

Similar to Sql portfolio piggy_bank (20)

PPT
Presentation Paul
PPT
SQL Server 2008 Portfolio
ODP
Supersize me
PPTX
Marcus Matthews
PPTX
Shangz R Brown Presentation
PPT
FI-Bank.ppt
PDF
MoneyBird - The Rails Side
PPT
Web Security Mistakes: Trusting The Client
PPTX
Cpe%20ppt (1).pptx
PDF
Cca venue worldintegrationmanual
PDF
Banking Database
PDF
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
PPT
My Portfolio
PPT
My Portfolio
PPT
Kevin Bengtson Portfolio
PPTX
ip3oK9ffghjff1R3CaBP3IgcgigW9gghjffjkiogfbn40characters9.pptx
PPTX
Move Out of Excel and into a Pre-Lead Workspace by Dan Donin
PDF
Work in TDW
PPT
Linq 090701233237 Phpapp01
DOCX
Presentation Paul
SQL Server 2008 Portfolio
Supersize me
Marcus Matthews
Shangz R Brown Presentation
FI-Bank.ppt
MoneyBird - The Rails Side
Web Security Mistakes: Trusting The Client
Cpe%20ppt (1).pptx
Cca venue worldintegrationmanual
Banking Database
DN 2017 | Reducing pain in data engineering | Martin Loetzsch | Project A
My Portfolio
My Portfolio
Kevin Bengtson Portfolio
ip3oK9ffghjff1R3CaBP3IgcgigW9gghjffjkiogfbn40characters9.pptx
Move Out of Excel and into a Pre-Lead Workspace by Dan Donin
Work in TDW
Linq 090701233237 Phpapp01
Ad

Recently uploaded (20)

PPTX
Slideham presentation for the students a
PPT
ALLIED MATHEMATICS -I UNIT III MATRICES.ppt
PPT
ppt-of-extraction-of-metals-12th-1.pptb9
PPTX
Unit 2 CORPORATE CULTURE AND EXPECTATIONS
PPTX
Core Characteristics and Abilities of an Effective Teacher_0.pptx
PPTX
430838499-Anaesthesiiiia-Equipmenooot.pptx
PPTX
GPAT Presentation PPT and details about imp topics.pptx
PDF
BPT_Beach_Energy_FY25_half_year_results_presentation.pdf
PDF
Sheri Ann Lowe Compliance Strategist Resume
PPTX
formulation and evaluation of polyherbal antiageing cream
PPT
notes_Lecture2 23l3j2 dfjl dfdlkj d 2.ppt
PDF
CV of Architect Professor A F M Mohiuddin Akhand.pdf
PDF
Shopify Store Management_ Complete Guide to E-commerce Success.pdf
PPTX
Creating-a-Personal-Blockchain-Portfolio-for-Developers-and-Experts.pptx
PPTX
Final Second DC Messeting PPT-Pradeep.M final.pptx
PDF
Career Overview of John Munro of Hilton Head
PPTX
Unit 3 Presentation Etiquette Business and Corporate Etiquette
PPTX
A slide for students with the advantagea
PPTX
employee on boarding for jobs for freshers try it
PPTX
ChandigarhUniversityinformationcareer.pptx
Slideham presentation for the students a
ALLIED MATHEMATICS -I UNIT III MATRICES.ppt
ppt-of-extraction-of-metals-12th-1.pptb9
Unit 2 CORPORATE CULTURE AND EXPECTATIONS
Core Characteristics and Abilities of an Effective Teacher_0.pptx
430838499-Anaesthesiiiia-Equipmenooot.pptx
GPAT Presentation PPT and details about imp topics.pptx
BPT_Beach_Energy_FY25_half_year_results_presentation.pdf
Sheri Ann Lowe Compliance Strategist Resume
formulation and evaluation of polyherbal antiageing cream
notes_Lecture2 23l3j2 dfjl dfdlkj d 2.ppt
CV of Architect Professor A F M Mohiuddin Akhand.pdf
Shopify Store Management_ Complete Guide to E-commerce Success.pdf
Creating-a-Personal-Blockchain-Portfolio-for-Developers-and-Experts.pptx
Final Second DC Messeting PPT-Pradeep.M final.pptx
Career Overview of John Munro of Hilton Head
Unit 3 Presentation Etiquette Business and Corporate Etiquette
A slide for students with the advantagea
employee on boarding for jobs for freshers try it
ChandigarhUniversityinformationcareer.pptx
Ad

Sql portfolio piggy_bank

  • 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.