Problem Description

Before updating Employees.salary, block the update if the new salary is less than 80% of the old salary.

Input Format

SQL DDL

Output Format

Trigger created

Sample Test Case

Input:
Employees
Output:
Trigger created

Constraints

MySQL-style OLD/NEW with SIGNAL

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next