When should you use ENUM, CHECK, or a status lookup table?
An orders table has a status column. Currently, an order can have one of three statuses: new, paid, or cancelled. The business plans to expand this list. Compare three approaches: ENUM, a string column with a CHECK constraint, and a separate status lookup table. When would you use each approach? What would you need to change in the database when a new status is added?
ExplainDDL, keys, and normalizationMiddleBackendData EngineerQA