←back to thread

Getting AI to write good SQL

(cloud.google.com)
501 points richards | 8 comments | | HN request time: 1.041s | source | bottom
1. JodieBenitez ◴[] No.44012669[source]
Wait... people need AI to write SQL ?
replies(3): >>44012804 #>>44014160 #>>44014339 #
2. randomNumber7 ◴[] No.44012804[source]
Most people here have not understood the relational model, so yes.
replies(1): >>44013404 #
3. criddell ◴[] No.44013404[source]
I’ve read most of Codd’s book on the subject and have written SQL on and off since the mid 90’s and I still need to look up the differences between the various joins anytime I use them.
replies(1): >>44028759 #
4. jeanloolz ◴[] No.44014160[source]
A junior in SQL would need AI to write things they're not sure about, the same way stackoverflow has helped us for many many years before AI. A senior in sql, and in fact any languages, would use AI to be accelerated (I know I do).
replies(1): >>44015200 #
5. aatd86 ◴[] No.44014339[source]
no.but if I ask for a report in natural language, the AI needs to be able to write sql.
6. JodieBenitez ◴[] No.44015200[source]
I see this comparison too often and I don't think it's fair. Stackoverflow has peer review.
replies(1): >>44030847 #
7. randomNumber7 ◴[] No.44028759{3}[source]
Ok, but you did get the general concept of why it is better than a hierarchical file storage system.

I also assume you dont try to throw mongoDB on every problem where a SQL database is clearly superior.

8. jeanloolz ◴[] No.44030847{3}[source]
It's a fair statement. Good point.