Problem Description

Block deleting an order if any payment exists for that order. Use a BEFORE DELETE trigger on Orders and check Payments.

Input Format

SQL DDL

Output Format

Trigger created

Sample Test Case

Input:
Orders, Payments
Output:
Trigger created

Constraints

MySQL-style SIGNAL + EXISTS

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next