SQL intermediate: subqueries, CTEs and window functions
Go beyond single-table queries: subqueries, common table expressions, window functions, set operations and handling NULLs and dates.
- 1SubqueriesA query inside a query: filter by a computed value, test existence and compare against a list.10 min
- 2Common table expressions (WITH)Name an intermediate result and build a query step by step.10 min
- 3Window functionsCompute rankings, running totals and comparisons without collapsing rows.12 min
- 4Set operations, NULLs and datesCombine results, handle missing values and group by time periods.10 min
Your certificate
Sign in to save your progress across devices and get a certificate with a public verification link. It is free.
Finish all 4 lessons, passing every exercise, to unlock your certificate of completion.
You completed SQL intermediate: subqueries, CTEs and window functions. Put your name on a certificate you can download and share.
Your name is saved with your certificate so anyone with its link can verify it. You can delete your account and certificates at any time.
Share your achievement
Post it and tag the creator. Pick a network to get the text with the right mention.
This is a self-paced completion certificate. Your browser issues it when you pass the exercises. It is not an accredited qualification or a verified credential.
Ready for more? Continue with the Advanced level: SQL advanced: indexes, plans, transactions and design. Each level has its own certificate that shows its level.