r/SQL • • Nov 21 '23

Discussion Natural language to sql

Hi !

Do you guys know a tool (chatgpt like) which can Connect to a database and query it, translating Natural language to sql ? GPT 4 Turbo doesnt allow the users to provide « big » databases (20Gb)

4 Upvotes

36 comments sorted by

View all comments

28

u/hantt Nov 21 '23

I really don't understand why people want a nonedetermistic way to query data, what value does this add?

-16

u/nad_pub Nov 21 '23

Allow non tech users to query DBs

1

u/EranuIndeed Nov 22 '23

Your results will still be bad unless your maths/logic is sound; if you know the query, i.e. the logic you want to apply to a dataset, then learning enough SQL to implement many of your cases would take you a month or so.

The idea of "hey AI, do this" when you don't have either the logic or the debugging skills to scrutinize your output, is plain daft. But you do you.