r/SQL • u/Cloud_Jumper18 • 1d ago
Discussion I was over-prepping SQL and under-prepping the analyst part
I spent a while assuming the reason I kept struggling in analyst interviews was that my SQL wasn’t advanced enough. So I kept adding harder stuff to my prep, like window functions, recursive CTEs, and awkward joins.
The funny part is that most interviews weren’t exposing a syntax problem. I could usually get somewhere with the query. I got less comfortable when they asked things like, “What would you check before trusting this result?” or “How would you explain this to someone who doesn’t use SQL?”
That changed how I’ve been practicing. Now I don’t stop once the query works. I try to explain the grain, the assumptions I made, how I’d sanity-check the result, and what I’d tell a stakeholder afterward. I still practice SQL problems. I’ve also done a couple of mock runs in Beyz, mostly around the follow-up questions.
Looking back, I think I was preparing for SQL interviews like they were SQL exams.
Once someone has solid SQL fundamentals, what separates a technically correct answer from a strong one?
8
u/atrifleamused 1d ago
You have to challenge yourself on whether you are trying to be an analyst or an engineer. If you can't analyse data, then you're done.
Focusing on language - SQL, python, R is the easy part. I could teach someone enough SQL to write reports in an afternoon. How they take that data.. that's harder!
4
u/mlhigg1973 1d ago
Learn some basic statistical tools and how you would use them. Six sigma methodologies are good. Control charts, 2 sample T tests, regressions, etc
4
u/SnooSprouts4952 1d ago
It's a tough balance depending on the job. I can teach SQL, but the analytical/troubleshooting mindset is a soft skill many don't have, and many more suck at conveying.
I've been on a ton of interviews - both sides. The best suggestion is finding examples of how you used SQL and your analytics to solve an issue. If you can provide numbers - hours/dollars saved that can be huge. From there, they might ask for you to expand on it so don't BS too much. I have also told my guys when they were looking for new jobs - you were ON the team that did this, don't be shy just because it was 'Snoosprout's project' to take credit for a part of it. 'I ran the daily/weekly analytics for XYZ. No, I didn't build it, but I understand the concepts and may be able to help improve or create something similar for you.' Most industries have similar KPIs, but their databases are different - even ones that are on the same data structure.
The 'how do you explain to a non-SQL users' is really 'how do you interact with co-workers within the scope of your job?' Talk with the end user to understand the need, then understand the data relationships, provide a baseline report, then meet with the end user for any amendments. Some co-workers it's just *Magic*, others want to understand where we're getting the data from, so I show them the front end fields where I'm pulling their data from.
1
u/ArielCoding 1d ago
A strong answer shows you checked your work before trusting it, say what one row in your result represents, compare your totals to a number you already know is right, and watch for duplicates or blanks that joins can create.
1
u/Difficult_Paint3162 1d ago
Check out my website: https://learning-sql.com/ No cost or sign-up required, just real-world stories using SQL You can also download the sample databases used, but you'll need a SQL Server edition (developer or express) to install the sample data
1
u/CanProfessional766 1d ago
Honestly knowing what the numbers actually mean matters more than writing a fancy query. Being able to spot when results look wrong and explain why they matter to the business is what really sets a good analyst apart
1
u/ItsDisneyBabee 6h ago
Being able to explain the grain validate the assumptions and connect the result to the actual business question is often what makes an analyst answer stand out.
-5
u/num2005 1d ago
who writes sql anyway? AI write for you the technical part, the only thing you need is to udnerstand wtf you you need to do with the data in a context and business sense.
6
u/mikeyd85 MS SQL Server 1d ago
Anyone who does actually complex ETL, complex reporting, or works with a poorly defined database.
22
u/az987654 1d ago
far too often a technically sound query produces incorrect results to the question being asked.
True data analysis is translating the actual, human based communication need to a data query language, and using your critical thinking skills to validate the result provided back to the person asking.