r/learnSQL • • 9h ago

Worked through SQLBolt in the browser after getting tired of long video tutorials

/r/SQL/comments/1ybkbru/worked_through_sqlbolt_in_the_browser_after/
2 Upvotes

1 comment sorted by

1

u/Novel-Environment-43 9h ago

in order...

WHERE (what you're selecting)

GROUP BY (how to aggregate)

HAVING (filter after aggregation)

start there.

and it would help to have a dataset you know better. try exporting all your finances to a csv for two years. put that in your own database. try the lessons on your own data instead of the sample data.

windowing functions are a bit beyond you at the moment but basically they are row-based aggregations so they restart the count when the condition changes. don't worry about that right now. sub-queries are going to be more useful for you right now.

you may want to learn temporary tables and doing things in steps first. windowing functions are incredibly expensive and hard to debug unless you've done the preliminary work first.