Problem Description

Create sp_transfer_funds(p_from, p_to, p_amt) to transfer money between two accounts. If the sender does not have enough balance, rollback the transaction so nothing changes.

Input Format

SQL procedure

Output Format

Procedure created

Sample Test Case

Input:
Accounts(acc_id, balance)
Output:
Procedure created

Constraints

MySQL-style procedure syntax

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next