The query ran, the result appeared, and the table mocked you with what it lacked. A new column is the fix. Nothing else will patch the gap in your data model.
Adding a new column is not complex. But done wrong, it can fracture production. Schema changes require precision. Think ahead: scope the impact, audit dependencies, run tests before you touch live data.
In relational databases, a new column can store computed values, indexes for performance, or metadata for downstream systems. In SQL, it’s a single statement:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
This changes structure instantly. But live systems rarely forgive mistakes. Every new column can affect queries, joins, and migrations. Low-quality changes slow reads, break writes, or cascade into API failures.