Problem Statement
Why do many teams avoid SELECT * in production queries? Give practical reasons.
Explanation
SELECT star pulls every column, even those you do not need. That increases I O, network transfer, and CPU, and can hide poor indexing because wider rows change access paths.
Listing columns makes intent clear, stabilizes APIs, and reduces breakage when new columns are added. It also helps the optimizer when covering indexes can satisfy the query without touching the base table.
Code Solution
SolutionRead Only
SELECT id, name, status FROM tickets WHERE status='OPEN';
