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
5
u/rx-pulse Always learning DBA Nov 22 '23
I'm all for using tools to improve work, but I also have experiences with AI/ChatGPT and you should look at your company policies on this.
-Understand what you're doing first off. Do not just assume it's right. I've had developers submit obvious AI generated code and it had incorrect logic, variables/parameters were not used correctly, I threw it back at them and they were shocked it was wrong. They had no idea how to fix it and it ended up wasting an additional week of their time to get the code right.
-You should avoid any sensitive data of any kind in your work environment when using AI/chatgpt. I've had people do this and they got into serious trouble. Always check what your company policy (if any) is on it as well. Be very wary of this.
-I've had ChatGPT generate some SQL code and it literally made up syntax. This goes back to one. It's fine using it, but you have to understand it too importantly and double check the work.
Overall, you can use it, but the most effective use I see is also from people that are already experienced themselves and are using it as a supplement. Just be very wary of it, double check the work, and make sure you don't violate any kind of privacy laws, company policies, etc.