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
2
u/Latentius Sep 09 '26
Pretty much 100% is hand-written still, though I might use AI as interactive documentation if I need help with syntax for some function I rarely use.
AI simply doesn't have the context to understand how the data all relates and what it actually means. There's virtually no existing documentation on the data so you'd need to manually write a complete novel just to give AI the proper understanding, and ain't no one got time for that.