A locker cannot have zero or negative storage slots. Require a known capacity and reject nonpositive values.
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. |
slots · integer | Whole-number count of storage slots in the locker. | Required; cannot be NULL. Check: slots > 0. |
Write your query in script.sql. Use Run to inspect it, then Submit.
CHECK rejects false; NOT NULL separately rejects an absent capacity.