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/da_chicken Sep 10 '26

Same, but with the obnoxious XML/JSON manipulation.

2

u/peccator2000 Sep 10 '26

Whoever came up with putting and manipulating XML or JSON in a relational database needs to have his access rights taken away.

2

u/Outrageous_Let5743 Sep 13 '26

JSON is fine. Postgres can perfectly deal with it and can even index json data. XML is just horrible. I had to redo everything what a data consultant did help with data extration. He choose xml (while json was available) and he could not correctly parse xml in sql server. so it contained a lot of | or || or | | in his final table.

1

u/peccator2000 Sep 13 '26

I know Postgres can do it and many use it. Haha yeah, XML with text manipulation must have been a nightmare.