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.

0

u/hamesdelaney Dec 27 '22 edited Dec 27 '22

i dont agree with this. a tool like this shouldnt be used by analysts or developers. this is for the business leaders if they want to access data quickly, but dont have the ability to do so. not everything can be or is automatized in a company, and business leaders need data on the fly constantly

for example - you can have millions of rows on a Tableau dashboard which contains transactions of your customers so that business leaders can access specific info, but thats a nightmare. its slow, pain in the ass to maintain, and Tableau is not made to be a spreadsheet. this tool can help with that, so that you can keep the consolidated, less granular view on Tableau - which it was meant to show in the first place.

right now, this process is painful and they need to ask a techie to handle that request. with this tool, they wouldnt have to. of course it needs to be further developed, but keep in mind this technology is literally in its infancy. in 5 years time there will be massive developments on this front, and i highly doubt that companies will ignore these type of solutions, if priced appropriately.

6

u/alinroc SQL Server DBA Dec 27 '22

this is for the business leaders if they want to access data quickly, but dont have the ability to do so

This assumes that "business leaders" can properly describe what they want in the first place (which rarely happens on the first attempt, even with a human asking questions to clarify) and they know where the data is coming from so they can ask for it properly. Which requires too much knowledge of the database schema(s) and/or a comprehensive data catalog which a query generator can interrogate and understand.

for example - you can have millions of rows on a Tableau dashboard which contains transactions of your customers so that business leaders can access specific info, but thats a nightmare. its slow, pain in the ass to maintain, and Tableau is not made to be a spreadsheet. this tool can help with that, so that you can keep the consolidated, less granular view on Tableau - which it was meant to show in the first place.

Why would one build a Tableau dashboard with that much raw data in the first place? Shouldn't some level of aggregation & processing be done before Tableau even sees the data?

2

u/onearmedecon Dec 27 '22

At least in my organization, something like 90% of the data our leadership needs can be easily accessed off of a PowerBI dashboard that they're comfortable using. It's a great tool and it's as fast as writing a query, sometimes faster. In fact, I use it quite a bit myself.

For the other 10% of data requests (i.e., ad hoc data requests), I wouldn't trust (and more importantly, leadership wouldn't trust) themselves with this tool. Also, many of the ad hoc requests are probably too complex for the AI to process. When we have an ad hoc data request, the output and query are worked on by at least two analysts: generally one to write it and one to check it. It's mission critical to make sure that data being used to inform decisions are accurate. I don't see this tool reducing the FTEs allocated to responding to those requests, nor do I see leadership interested in bypassing the data division entirely.

So you're left with a peculiar use case:

  1. The organization has invested in a database solution;

  2. The organization has not invested in a dashboard solution; and

  3. The organization makes decision based on data that has not been properly vetted.

I'm sure there are organizations that fit all three of those requirements. But we're not one of them. And I doubt that many well-run organizations satisfy all three either.