When window functions are evaluated
Window functions and GROUP BY
Summary

Instruction

Great. The same problem occurs when we try to use a window function in the HAVING clause.

Exercise

This time, find out for yourself that window functions don't work in the HAVING clause. Look at the template: we would like to show those countries that have the average final price higher than the average final price from all over the world. Try to run this query.

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

Console

Code editor

Result

TableConsole