r/SQL • • 3d ago

MySQL Completed SQL foundation from SQL Bolt, Now practicing on Hackrrank What to do next for learning more concept.

Also confused which sql language to choose, thinking of choosing T-sql of microsoft

12 Upvotes

14 comments sorted by

4

u/ComicOzzy sqlHippo 3d ago

Skip hackerrank. It won't teach you anything valuable. It has coding puzzles, not real SQL business problems like DataLemur, StrataScratch, or LeetCode.

1

u/SlightlyBeigeWall 2d ago

THANK YOU FOR REPLYING

2

u/sumwise_victor 3d ago

Don't overthink the dialect yet. Around 85 to 90% of day-to-day analytics SQL (joins, GROUP BY, CTEs, window functions, CASE WHEN) is basically the same across Postgres, MySQL, and T-SQL. Picking T-SQL makes total sense if the jobs in your area ask for SQL Server or Power BI, otherwise Postgres is a really clean default and switching later only takes a few days.

As for what to learn next after SQLBolt, these 4 patterns show up constantly in interviews and real work:

  1. CTEs (WITH clauses) to break messy queries into readable steps
  2. Window functions (ROW_NUMBER, RANK, LAG/LEAD, and running totals with SUM() OVER)
  3. Anti-joins (LEFT JOIN ... WHERE right_table.id IS NULL) to find missing records
  4. Conditional aggregation (SUM(CASE WHEN ... THEN 1 ELSE 0 END))

Once those feel comfortable, grab a messy multi-table CSV dataset (like an ecommerce or sales dataset), load it into SQLite or SQL Server locally, and answer 5 real business questions like month-over-month growth, repeat customer rate, and top 3 products per category. That bridge from small exercises to messy multi-table questions is what really makes it click.

1

u/SlightlyBeigeWall 3d ago

Thank you for the response

1

u/ComicOzzy sqlHippo 3d ago

Yeah you can't go wrong choosing Postgres or SQL Server if you don't have a known platform to target just yet.

They both have very strong communities with helpful people and many resources for learning.

1

u/KeyPreparation1320 2d ago

Work on what practical problems are faced and interview scenarios. You can cover the concept quickly. You need not do a top down approach on everything.

1

u/SlightlyBeigeWall 2d ago

tHANK YOU FOR REPLYING

1

u/usable_emory 2d ago

prolly the best next step is just building something dumb and breaking it a few times, that's where the window function stuff actually clicks

1

u/SlightlyBeigeWall 1d ago

what does breaking mean

1

u/Discordbothost 2d ago

Don't switch to T-SQL yet. Joins, CTEs, window functions and indexing carry over across dialects almost entirely. Pick a dialect when you're targeting specific jobs, not before.

1

u/Artistic_Cow_9586 1d ago

pick the dialect your target jobs use, but focus on joins, window functions, ctes, subqueries, and data modeling instead of collecting sql dialects like pokémon

1

u/datadriven_io 2d ago

Yeah, I wouldn’t worry about practicing SQL then. Definitely worth learning - but you’re better off showing them things that are more practical to the role. Make time to practice sql online at datadriven.io each week. I doubt if you’re interviewing for a front end role that they’d expect you to know how to build an API, they’d expect you to know how to use one.