Problem Description

While placing an order, keep a savepoint after reserving stock. If payment fails, rollback to savepoint.

Input Format

SQL script

Output Format

Statements

Sample Test Case

Input:
Inventory, Payments
Output:
Safe rollback

Constraints

Use savepoint

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next