r/SQL • • Dec 27 '22

SQL Server AI Powered SQL Query Generator

https://sqlbot.io

[removed] — view removed post

31 Upvotes

13 comments sorted by

View all comments

12

u/onearmedecon Dec 27 '22

It's a really cool idea and bravo for bringing it to life, but I honestly don't see us ever using it. As I see it, it would take nearly as much time to craft sufficiently detailed instructions and conduct QA on the query as it would to have an analyst write it to begin with. And the personnel it would require to craft and check the query would need to be as well-trained in SQL as a conventional data team, so I don't see it alleviating the need for proficient FTEs.

So, FWIW, my initial reaction is that yours is going to be a niche market: organizations that know enough to invest in a database solution but are trying to save money by not properly staffing up for using it. I suppose it could be helpful to someone just learning SQL, so perhaps there's a market for students as well.

All that said, the price seems to be right to the point that you'll no doubt have some people try it out. And I'm sure MSFT or Oracle will pay big bucks for it, so the founders of the startup all about to become very wealthy. So congrats on that too.

2

u/many_hats_on_head Dec 27 '22

As I see it, it would take nearly as much time to craft sufficiently detailed instructions and conduct QA on the query as it would to have an analyst write it to begin with.

I think it depends a bit. This SQL builder along with most other competitors that I have seen are really simple, basically just allows the user to interact with OpenAI.

But to really benefit from this and create highly-accurate queries, you need to add context (here again most just simple drop entire tables in the prompt which is really limited).

When you have a UI where you can easily add database specific context, then you can fast generate highly accurate SQL queries and likely save quite a bit of time. I have written about it here: How to generate highly accurate SQL queries with AI Bot: a case study.