When window functions are evaluated
Window functions and GROUP BY
Summary
18. Summary

Instruction

Excellent. It's time to wrap things up.

  • Window functions can only appear in the SELECT and ORDER BY clauses.
  • If you need window functions in other parts of the query, use a subquery.
  • If the query uses aggregates or GROUP BY, remember that the window function can only see the grouped rows instead of the original table rows.
    • Are you ready for a short quiz, then?

Exercise

Press Next exercise to continue.

Console

Code editor

Result

TableConsole