r/learnSQL • u/AnupamBajra • Feb 03 '26
How I Learned SQL in 4 Months Coming from a Non-Technical Background
Sharing my insights from an article I wrote back in Nov, 2022 published in Medium as I thought it may be valuable to some here.
For some background, I got hired in a tech logistics company called Upaya as a business analyst after they raised $1.5m in Series A. Since the company was growing fast, they wanted proper dashboards & better reporting for all 4 of their verticals.
They gave me a chance to explore the role as a Data Analyst which I agreed on since I saw potential in that role(especially considering pre-AI days). I had a tight time frame to provide deliverables valuable to the company and that helped me get to something tangible.
The main part of my workflow was SQL as this was integral to the dashboards we were creating as well as conducting analysis & ad-hoc reports. Looking back, the main output was a proper dashboard system custom to requirements of different departments all coded back with SQL. This helped automate much of the reporting process that happened weekly & monthly at the company.
I'm not at the company anymore but my ex-manager said their still using it and have built on top of it. I'm happy with that since the company has grown big and raised $14m (among biggest startup investments in a small country like Nepal).
Here is my learning experience insights:
- Start with a real, high-stakes project
I would argue this was the most important thing. It forced me to not meander around as I had accountability up to the CEO and the stakes were high considering the size of the company. It really forced me to be on my A-game and be away from a passive learning mindset into one where you focus on the important. I cannot stress this more!
- Jump in at the intermediate level
Real-world work uses JOINs, sub-queries, etc. so start immediately with them. By doing this, you will end up covering the basics anyways (especially with A.I. nowadays it makes more sense)
- Apply the 80/20 rule to queries
20% or so of queries are used more than 80% of the time in real projects.
JOINS, UNION & UNION ALL, CASE WHEN, IF, GROUP BY, ROW_NUMBER, LAG/LEAD are major ones. It is important to give disproportionate attention to them.
Again, if you work on an actual project, this kind of disproportion of use becomes clearer.
- Seek immediate feedback
Another important point that may not be present especially when self-learning but effective. Tech team validated query accuracy while stakeholders judged usefulness of what I was building. Looking back if that feedback loop wasn't present, I think I would probably go around in circles in many unnecessary areas.
Resources used (all free)
– Book: “Business Analytics for Managers” by Gert Laursen & Jesper Thorlund
– Courses: Datacamp Intermediate SQL, Udacity SQL for Data Analysis
– Reference: W3Schools snippets
You can read my full 6 minute article here: https://anupambajra.medium.com/how-i-learned-sql-in-4-months-coming-from-a-non-technical-background-8482e5aec06e
Fun Fact: This article was shared by 5x NYT best-selling author Tim Ferriss too in his 5 Bullet Friday newsletter.
13
u/SeveralIce4263 Feb 03 '26
rock on bro.I'm on my 2nd month,struggling
4
u/Kenn_35edy Feb 03 '26
Hi congrats you have provide valueable advice
2
u/Acrobatic_Sample_552 Feb 04 '26
Hey this is awesome and what I’m going through in my work right now. I’m trying to get away from a passive learning mindset. Are you saying you took your company’s queries to do a personal project or how did you learn? Did you use YouTube first like what was your approach to being proficient in 4 months?
2
u/samratsth Feb 05 '26
So what's the actual difference between a data analyst and a business analyst?
I think you will be the right person to ask to as I have a lil 🤏🏻 experience in dashboarding and that's what kinda DA role. And I know nothing about BA though I gave few interviews and what they asked me was riddles, puzzles etc apart from SQL, python, PBI . And I was seriously thinking why on earth they are asking such weird questions.
2
u/Different_Article107 Feb 05 '26
Thanks for sharing, i want to know how you have learnt powerbi, what are all the important points required to learn to work in a real environment.
2
u/Fair-Antelope-3886 Feb 07 '26
the real project part is so true. i learned more in my first month on the job than like 3 months of tutorials before that. the 80/20 thing is spot on too, window functions and CTEs come up constantly in actual work. one thing id add is if your prepping for interviews specifically the questions are a bit different than day to day work, more puzzle-like. practicing on something like SQLBolt for fundamentals and Query Dojo for the interview style stuff helped me bridge that gap
1
u/drakethe6 Feb 04 '26
Can you define what your interpretation of “learned SQL” is?
2
u/melvinroest Feb 14 '26
So I genuinely wonder if you can't learn SQL faster than 4 months. But it also depends, if you meant 168 hours * 4 months? Or do you mean more like 10 hours per week for 4 months?
I'm building a free SQL course because I feel like it should be learnable in 20 hours (CTEs, window functions, all of that). And then another 20 to 40 hours should be spent on real world data to be ready. Maybe I'm too optimistic but that's what I'm aiming for with library.aliceindataland.com (yep, Alice in Wonderland themed, there's a whole story behind it too 😄). I'd also recommend SQL Teaching and the Querynomicon*.
* Quite frankly, if the Querynomicon was interactive, I wouldn't be creating a free course. It covers a lot. Much more than a data analyst needs.
2
u/Purple-Ad-5668 Feb 03 '26
I also want to learn sql
6
u/[deleted] Feb 03 '26
[removed] — view removed comment
4
u/[deleted] Feb 03 '26
[removed] — view removed comment