Field note · December 1, 2026
SQL or Python first?
SQL, and it is not close.
A question that came in more than once, so the answer goes here.
SQL or Python first?
SQL, and it is not close.
SQL is where the data is. Every warehouse speaks it, every BI tool generates it, and most analytical questions are a group-by away from being answered. You can be genuinely useful with SQL and nothing else.
Python's advantage — control flow, testing, packaging, the modelling libraries — matters enormously at the point where you are building something that runs on a schedule. It matters much less when you are answering a question.
The honest ordering: SQL until joins, window functions and grain are automatic. Then Python. Then, when something you built needs to run without you, the engineering material.
"Automatic" is doing work in that sentence. It means you can write a window function without looking up the syntax, you check cardinality before joining without being reminded, and you can say what one row of a table represents before you query it. That is a few months of real use, not a weekend.
The failure mode to avoid is learning both halfway at once and reaching for pandas whenever the SQL gets hard. The SQL getting hard is usually the signal that the model underneath is wrong, and exporting to a DataFrame hides that rather than fixing it.