Course 1 Module 02 Lesson 5
Course 1 Module 02 Lesson 5
Module 2
Introduction to Databases and DBMSs
START TRANSACTION
Display greeting
Get account number, pin, type, and amount
SELECT account number, type, and balance
If balance is sufficient then
UPDATE account by posting debit
UPDATE account by posting debit
INSERT history record
Display message and dispense cash
Print receipt if requested
End If
On Error: ROLLBACK
COMMIT
5