The query ran. The table returned. But the shape was wrong. You need a new column.
A new column changes the data model. It can hold computed values, metadata, or fields tied to specific features. Done right, it makes queries faster and business logic cleaner. Done wrong, it bloats storage, breaks indexes, and triggers downtime.
Before adding a new column, confirm the schema. In relational databases like PostgreSQL or MySQL, adding a column is a schema-altering operation. It can lock the table, impact performance, and may require adjusting constraints. In NoSQL stores, adding fields can be immediate but needs consistent application-level handling.
Plan for type selection. Use the smallest type that meets the requirement: integers for counts, timestamps for events, JSON for semi-structured data. Default values can prevent null issues, but be aware that initializing millions of rows during an ALTER TABLE can be costly.