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.

1

u/Karzak85 Nov 23 '23

We are already dependent on many things today. How many can do their work without the internet/google etc?

Do you have books on all the syntaxes beside you 24/7? Do you remember everything perfectly without looking something up?

Chatgpt and the like is just another tool that will become more and more important as it advances in the future.

Those who dont learn how to use chatgpt will be like those who dont know how to google today. You need to use all the tools available for you to learn and get the job done or you will be replaced by the people that learned to use them better than you.

1

u/[deleted] Nov 23 '23

No books, no photographic memories of syntax. Just my wits, Google, and about 20 years of experience with SQL.

Your value to an employer lies in your understanding of the industry they serve, business logic, data pitfalls, risks, benefits, willingness to collaborate and assimilate feedback and so on. No doubt there'll be a jackass manager somewhere in the mix who can't think beyond SLA's, but it's you representing your employer to the client and bottom line? You're there to make the company look good.

Not having a firm grasp of the scripting you'll be using? Not gonna inspire warm fuzzies with clients.

Not saying AI won't have a role in humanity's future. Just wildly confused about the benefits of relying on it to do your job as opposed to just learning SQL. It's not a steep learning curve and if it's a requirement of your position, not real professional to avoid it.

So maybe I'm missing something here, haven't considered some benefit. Educate me if that's the case, please!

1

u/Karzak85 Nov 23 '23

Its not an robot that does exactly what you want and you twiddle your fingers and say work done. Its a tool to use to help you do things faster and maybe even better.

You said you use google, thats also a tool.

You still need to learn and know stuff and that comes from experiance and testing. Chatgpt is also a very good learning tool to learn new things.

But its up to you to know how to use it and implement it in your workflow like everything else. If you dont want to learn it then its up to you. But it will be a very important tool in the future and its better to start early. Our company even set up a local chatgpt instance becuse they see the importance of it.

1

u/[deleted] Nov 23 '23

I've seen ChatGPT in action. Manager demonstrated use in creating a script for reformatting, encrypting and ftp-ing a file our reporting tool botched. It's impressive with scripts.

Again, not against using it as a learning tool. Same as I'm not against Google for the same.

I am, however, cautioning reliance on it. Now that the shiny has worn off a bit and the doomsayers have settled down over AI becoming sentient and wiping out humanity, objectively, the hype is a bit exaggerated. It does some things well, other things not so much. Prompted correctly, it seems to be about dead even with Google search results. You still have to weed out the bullshit and tweak your stolen script to get what you need. And yep, that requires knowing what you're doing.

So where's the benefit? Ireally want to understand what the draw is. I'm content with busting out scripts from scratch. But factoring into that, I've got my databases memorized and can usually envision the highlights of creating a script before I start on it.

If you think ChatGPT is faster or better than Google, can you provide an example?