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

5 Upvotes

3 comments sorted by

View all comments

1

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

Thank you for the response