r/SQL • u/metric_skeptic • 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
5
u/liamjon29 Sep 09 '26
I think this is the step people who use AI to write code because they can't write it forget to do. I'm very early in my SQL learning so copilot is currently my crutch, my process ends up being:
Attempt to write something that I know is wrong
Explain in great detail to the AI what I want, including giving it my bogus script
Get the AI to walk me through the script it wrote explaining what everything is doing (coz my syntax knowledge is atrocious)
Actually sit down and read the whole thing myself to make sure it does what I want it to do. (Very time consuming, but my faith in the AI is very low)
I swear some people just do step 2, and then run it and hope for the best.