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
-2
u/elevarq Sep 09 '26
The better models have 1M tokens context window. That’s about 650k to 750k words. The average book has about 70k words.
When you need to add about 10 books as context for a single SQL statement, something is wrong. There are hardly any applications that have so much documentation!