Problem Description

Instead of physically deleting a customer, do a soft delete: set is_active=0 and stop the DELETE. Use a BEFORE DELETE trigger to enforce this rule.

Input Format

SQL DDL

Output Format

Trigger created

Sample Test Case

Input:
Customers(is_active)
Output:
Trigger created

Constraints

MySQL-style trigger pattern

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next