Savepoint and rollback partially

SQL Easy 3 views
Back to Questions
Next Commit after successful update Easy N

Problem Description

You are inserting an order and items. If one item insert fails, rollback only item inserts but keep the order row. Use SAVEPOINT.

Input Format

SQL script

Output Format

Statements

Sample Test Case

Input:
Orders, OrderItems
Output:
Partial rollback

Constraints

Use SAVEPOINT

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next