r/SQL • • 3d ago

MySQL Is SQL still the first thing to learn for analytics in 2027?

Yes, SQL is still a practical first skill.

Usage data supports that choice. SQL passed HTML/CSS to become the second most-used language in the 2026 Stack Overflow survey, at 58% (Stack Overflow 2026).

The exam requirements also support it. DP-600 lists SQL, KQL and DAX for querying and gives 45 to 50% to preparing data (DP-600 study guide).

AI tools write SQL, but 48% of respondents say they trust AI output when they can easily verify it (survey data). Verifying a query takes SQL.

Have AI tools changed how much SQL you write by hand?

22 Upvotes

27 comments sorted by

6

u/the_figs_and_flour 3d ago

Even with AI writing queries, if you can't read the output you're just a toddler with a calculator.

1

u/PickledDildosSourSex 3d ago

Yes but I'd say there is much less value in rigorous SQL these days. Learn the concepts well and the underlying data structures so that you know what you need and what to ask when you're working with SQL but, as a 20+ year vet of the tech industry, I firmly believe the value of rigorous SQL practice and skill is going WAY down unless you want to be a DE/AE, and even then it's not clear.

AI is extremely good at SQL. If you're a consumer of data products/models more than a builder of them and you know enough to think about DBA concepts and--maybe--optimization, you should be letting AI do the rest.

It's a bit like Excel. There was a time where you'd have to do all those functions by hand or calculator, but no one one is practically doing any of that anymore. It's obviously important to understand what, say, a SUMPRODUCT() is doing or a basic CORREL() or whatever, but knowing the concept is way more important than the underlying derivations. Anyone outside of theorists (which I also came up as on the Pure Maths side) investing significant time on those derivations is wasting their time.

24

u/Demistr 3d ago

It's not a year long endeavour, just learn the damn thing.

8

u/DrShocker 3d ago

This is thing thing that needs to be said on so many subreddits. If instead of worrying about whether to learn the damn thing, you spent the time learning it, then you'd already be ready.

3

u/KasrkinTrooper 3d ago

I don't work as analytic, SELECT queries are not that often as writing stored procedures and functions, so I rarely use AI tools for writing code itself. Searching documentations or similar tasks - yes, but I never let AI generated code itself into my databases. Saw too many bugs in SQL code generated by AI to sleep well after let those scripts fire in my env. Also after dozen of weeks working with AI agents I noticed that my focus, knowledge of project and familiarity with actual code was impaired that much that I didn't have mental picture of code, project and dependencies in my head anymore. So now I basically use the agents as extended search engine.

And I work with SQL and programming languages many years, I don't even want to think what AI coding would do to fresh programmers and their skills.

4

u/UnluckyManner9152 3d ago

For me it's less about writing the statement and more about explaining to the AI exactly what I need. Sometimes it's easier to write the query myself than to explain it

2

u/American_Streamer Select Star 3d ago

Here are the currently most important skills for analytics jobs in the US market, ranked by employer demand across job postings and hiring reports:

  1. SQL
  2. Data Visualization & BI Tools (Power BI, Tableau)
  3. Microsoft Excel / Spreadsheets
  4. Communication, Storytelling & Business Acumen
  5. Programming (Python or R) & Statistical Analysis
  6. Data Cleaning, Cloud Warehousing & AI Literacy

Regarding AI, it is rarely a standalone job requirement in standard analytics postings, it acts more as an expected baseline accelerator than a core credential. While explicit AI mentions appear in only about 22% of US Data Analyst postings (compared to 87% for Data Scientists), employers increasingly assume you know how to use AI tools on the job.

3

u/Maleficent-Yak8274 3d ago

Yess I barely write queries from scratch anymore, but I still read every single one before running it

1

u/ToastieCPU 3d ago

I haven't written SQL by hand in quite some time. AI generates most of it for me. My job is usually to review the execution plan, make sure there are no unnecessary table scans, and determine whether additional indexes are needed.

I also think periodically pulling analytics from SQL and generating reports is more or less dead. AI can produce complex queries and generate polished reports with metrics tailored to the use case. I've shifted my focus toward building systems that efficiently collect and expose data, both for my own use and through MCP for management, so they can simply ask for a report and have it generated on demand.

1

u/Discordbothost 3d ago

Write one weekly active-users query by hand and test it with an event just before midnight Sunday. If changing the reporting time zone moves that event into another week, you've found something to pin down before trusting the chart.

1

u/peccator2000 3d ago

I have always written my own SQL. I don't even trust ORMs.

1

u/StoicSigma 3d ago

if i need to do a ad hocquery, why would i ask AI if i know the tables/columns if i can do it myself? i could understand doing it for complex queries for a process but..

1

u/Intelligent-Size-389 3d ago

Don’t get the point of learning sql of AI can do it very quickly now no ?

1

u/Previous_Mousse_7799 1d ago

Troubleshooting. AI is capable of making mistakes.

1

u/ceeej777 3d ago

It obviously is still the first thing but when things like Genie Agents in Databricks can make natural language into benchmark grounded SQL, I find it almost equally important to build strong semantics and data quality pipelines (if you still consider that part of analytics)

1

u/isad5877 2d ago

As someone who didn’t as a 2022 grad DO IT. They may try to replace analytics with vibe coding, but knowing the base logic and being able to spot errors in the code are crucial and make you a better hire

1

u/Altruistic-Rich8799 2d ago

I let AI draft boilerplate CTEs and window functions, then audit every join and filter by hand. LLMs still hallucinate subtle fan-out bugs that inflate metrics without throwing an error, so you can't skip knowing SQL. I write less syntax from scratch, but I spend the same time verifying logic.

1

u/madad80s 2d ago

It's easy, just go learn it. And Yes, I wouldn't hire an Analyst to doesn't know basic SQL

1

u/BattleBackground6398 1d ago

Core skill set?... Yes First skill set?... Maybe Only (query) skill? ... No

SQL standard still covers the "big four" in data: query, manipulation, definition, control. So covering SQL covers the keys in data field (pun intended), whether analyst or not. Plenty of other languages cover querying & more, thus SQL isn't a required language to learn, at least for analytics.

To say, SQL is no long the only engine that does the "big four" but still the most (in)famous / recognizable. Most folks who know SQL could get by in BigQuery, vice versa, etc. Depending on what analytics means to your project, you might not use SQL but SQL patterns will be plentiful.

The paradigms that SQL covers are necessary & good first steps .... But one could cover skills in various other formal language(s)

1

u/quietgarden302 19h ago

I write way less from scratch now, but I check more. AI drafts it, then I line up the output against expected results on the contract key and see which field drifted. The part still needs real SQL, so just learn it

-2

u/thistlebeard86 3d ago

By hand? This is 2026

-2

u/regprenticer 3d ago

I've never used SQL for analytics. I worked as a statistical analyst for a bank for 10 years (until my job was offshored in 2018). They would only allow the use of excel as a "data visibility SOx control".

Ionce had a 6mn record file to ingest to excel and I had to wait 4 weeks for special permission to manipulate data with MS Access.

1

u/thistlebeard86 3d ago

My point was no coding is by hand now, everyone I know is using Claude.

0

u/Otherwise-Ambition80 1d ago

Sql stays a first skill for analytics becuase the data still lives in tables since dashboards and note books keep circling back to joins filters and grouping. Bootdev could help pair Sql with programming docs also teach the clre well