Using Window Clause

Question:

This SQL function can be made simpler by using the WINDOW statement. Please try and use the WINDOW clause. Each cat would like to see what half, third and quartile they are in for their weight.

Return: name, weight, by_half, thirds, quartile

Order by: weight

Show Table
Show Desired Output

Query Window:

Click me!

Show Hint
Show Answer

Your output: