Coupons: unique code and discount range
Design a coupons table: the code is required and unique, and the discount pct is an integer from 1 to 100. Columns: id — primary key; code; pct.
Just CREATE/ALTER/DROP — no trailing SELECT needed.
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inNo starting schema
This task starts with no tables — you'll create them via CREATE TABLE.