When window functions are evaluated
Window functions and GROUP BY
Summary

Instruction

Great. The GROUP BY clause is also calculated before window functions. This means that we can't group by the values obtained with window functions. Let's check that.

Exercise

Try to run the template query. The idea is as follows: we want to divide auctions into four equal groups (quartiles) based on the number of views and show the minimal and maximal value for each group. Will this query work out?

When you're done, press I'm done. Next exercise to continue.

Console

Code editor

Result

TableConsole