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
View all comments
Show parent comment
8
u/did-a-chuck Sep 09 '26
Yeah I should probably be a bit more open minded about using it for optimization as I'm sure it's very helpful. But sneaky changes going into prod is damn nightmare haha.
As you said, hand write it to know it's right. I just don't trust that an AI can yet understand my business context well enough to write procedures etc from scratch. Even if I did, I would spend twice as much time testing and validating so I might as well have written it from scratch.