Problem Description

In Coupons(code, discount_percent, max_discount), discount_percent must be 0 to 80, and max_discount must be at least 100 if discount_percent > 50.

Input Format

SQL DDL

Output Format

DDL statement(s)

Sample Test Case

Input:
Coupons(code, discount_percent, max_discount)
Output:
Constraint added

Constraints

Assume table exists

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next