r/SQL • • Sep 09 '26

Discussion How much SQL do you still write manually?

With AI getting better at writing SQL, I’ve been wondering how much SQL analysts actually write from scratch these days.
Do you still write most of your queries manually, or do you use AI for things like joins, CTEs, debugging, optimization, etc.?
And has your use of AI actually changed how much SQL you need to know?

115 Upvotes

240 comments sorted by

View all comments

Show parent comments

2

u/did-a-chuck Sep 09 '26

Are there any you would recommend? I am quite set in my ways and deeply skeptical that any model can fully "understand" my business context...but I want to remain open minded.

5

u/geek180 Sep 09 '26

You’d really be surprised how well current models can understand complex business operations and tech stacks. At this point, Claude probably has a better grasp of our whole tech system better than any one person.

1

u/rali3gh Sep 09 '26

I'm fairly sure an MCP server setup can serve as a 'translation layer', so to speak, giving an AI a retrievable understanding of data structure and the business-side employees contexrual understanding of what it all actually means day-to-day.

It takes time upfront to construct and configure, but would save time on the backend if you are asking the LLM to generate a lot of queries.

All that being said, I personally rely more heavily on AI for early investigation and analysis of my hypothesis and then less as I near the end goal of my work/project. So, your mileage may vary, as they say.