Build a table with rules: CREATE TABLE and transactions · exercise 1 of 1 · free preview
CREATE TABLE name (column type rule, ...) makes a new table. PRIMARY KEY makes a column unique and required. NOT NULL makes a column required.
Create a table called coupons with three columns: code (text, the primary key), percent_off (integer, required) and expires_on (date, may be empty). The check shows how each column is defined.
Tables in this practice shop
customersproductsordersorder_items