r/learnSQL • • 11h ago

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

Confused on what to learn next, have a thought of learning T-sql.

1 Upvotes

2 comments sorted by

2

u/nicopassaglia 9h ago

After the basics, the usual gaps are these, roughly in this order:

  1. Window functions: ROW_NUMBER, RANK, LAG, running totals, top N per group. This is the biggest jump from beginner to "can do real reports", and it comes up in almost every interview.
  2. CTEs (WITH), and when to use one instead of a subquery.
  3. CASE WHEN inside aggregates, and how NULLs behave in joins, COUNT and NOT IN.
  4. Then interview-style problems: second highest salary, finding duplicates, customers who never ordered, month-over-month change.

On T-SQL: it's the SQL Server dialect, so learn it if the jobs you're aiming at use SQL Server. Check a few job posts in your area first. Everything in the list above carries over to any database, only some syntax changes, so I'd do the list first and pick up the dialect after.

If you want to see where your gaps are before choosing, I built a free 10-question SQL test where you write the queries against a real database: https://getsheetdrill.com/sql/test

There are also free pages with checked exercises on the topics above, for example window functions (https://getsheetdrill.com/sql/reference/window-functions) and common interview questions with answers (https://getsheetdrill.com/sql/interview-questions).

Disclosure, the site is my own project. Those pages are free, no sign-up.

1

u/Top_Tooth_6995 5h ago

SQLMaxx Learn is a free sql course with 66 concepts and 615 practice problems that does exactly what you’re looking for. It takes you concept by concept, each one building on the previous, until you are fluent in analyst-level SQL. It also uses spaced repetition (review mode), so you can continually reinforce concepts you previously learned. Did I say it’s free?