Most new lockers have one slot. Define that as the value for an omitted capacity while retaining the positive-capacity rule.
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. Default 1 when omitted. Check: slots > 0. |
Write your query in script.sql. Use Run to inspect it, then Submit.
DEFAULT applies to an omitted value, not an explicitly supplied NULL.