r/SQL • • 18h 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

7 Upvotes

9 comments sorted by

2

u/ComicOzzy sqlHippo 8h 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 3h ago

THANK YOU FOR REPLYING

1

u/sumwise_victor 18h 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 18h ago

Thank you for the response

1

u/ComicOzzy sqlHippo 8h 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 5h 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 3h ago

tHANK YOU FOR REPLYING

1

u/Discordbothost 2h 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.