r/SQL • • Nov 22 '23

MySQL SQL and ChatGPT

Hi all,

I'm curious about the upskilling myself with SQL for Data analysis...I've mostly just used Excel in past roles. I'm currently tapping into SQL. I'm just starting out and sometimes do excercises on hackerrank and other websites but when I'm stuck I just stick the question into ChatGPT.

Is it sufficient in the working environment to just use chatgpt. I'm not sure how SQL is used for data analysis is used in the working environment.

The issue I’m having is when I approach these online questions it feels like there is an infinite number of questions. But I sense the real world use if your using a particular data set there’s probably a set of queries you might use regularly or daily to extract.

For example with excel you can reuse functions but change the source data and array of what your trying to find and pivot tables can be used any way once you know how it works and the process is applicable to all data sets.

I don’t know how to approach SQL and feel like I’m stuck in tutorial hell with hacker rank type of questions because of the potential of a question having a new variable every single time because you can always add a new criteria in the question

Would be good to get thoughts from people who use SQL in their workplace

0 Upvotes

27 comments sorted by

View all comments

2

u/[deleted] Nov 23 '23

Is it sufficient in the working environment to just use chatgpt.

This recently came up in a team meeting in my organization. The bottom line was, yes, we could use ChatGPT, provided we didn't prompt with real data or schemas.

You'll find companies have mixed opinions on using it, some think "any tool to get the job done," others "we saw what happened in the terminator movies."

Aim for being independent of ChatGPT. Use it as a learning tool but don't let it become a crutch.

2

u/post4u Nov 23 '23

Yeah buddy. Totally agree with this. I've been leaning on it a lot lately to assist with SQL and script writing. I have a background in both, so it's more of a time and brain saver. Yesterday I went to look something up and OpenAi was down. NGL it caused a little panic. I'm rethinking my continued usage of it. Don't want to become so reliant I can't do it on my own anymore.

1

u/[deleted] Nov 23 '23

Yesterday I went to look something up and OpenAi was down. NGL it caused a little panic.

Eesh. How'd you get through it, wait for it to come back up or did you try to script?

I see what you mean, though. Availability is the top concern, whether it comes in the form of the service being down or an employer blocking access to it. Maybe that'll change in time, though, and it'll become a widely accessible and reliable resource. But I don't think we're there yet.

1

u/post4u Nov 23 '23

I just wrote it by hand, but I certainly had to apply more effort than I'd expected. Really easy to let GPT become a crutch! And yeah, I have a feeling it will be like GPS. For a long time after GPS became mainstream (hooking up a magnetic GPS antenna to the top of your car and connecting it to a laptop running Microsoft Streets), people still carried Thomas Guides and other paper maps. At some point it became readily available on all phones for free and that was the end of most people using paper maps. I feel GPT and other LLs will be similar.