The query runs. The result looks fine. But the table needs more. You add one thing: a new column.
A new column changes the shape of your data. It can hold a computed value, an index, a flag, or an external reference. It can store results from a CASE expression or the output of a function. In SQL, it’s done with ALTER TABLE followed by ADD COLUMN. In NoSQL, you update the schema in code or through your migration tool.
When you add a new column, think about type, default value, and nullability. A wrong type can break downstream queries. A bad default can distort aggregates. NULL handling can affect joins and filters. For relational databases, adding a column without defaults can be cheap. Adding with defaults can lock the table. In big datasets, this matters.
Indexes can be tied to new columns. Adding an index improves lookups but costs on writes. For high-volume systems, measure the impact before deploying. Test schema changes in staging. Validate queries against the updated table.