A locker label must be recorded before the row is accepted. Keep the familiar primary key and add the required-value rule to the label.
This exercise starts without tables. The following dictionaries describe the tables to create, not preloaded tables.
lockersOne row represents one locker.
| Field / SQL type | Meaning | Rules |
|---|---|---|
locker_id · integer | Identifier of the locker. | Primary key. Required; cannot be NULL. |
label · text | Readable locker label. | Required; cannot be NULL. |
Write your query in script.sql. Use Run to inspect it, then Submit.
NOT NULL does not make text unique or forbid an empty string.