Partitioned Running Totals

Question:

The cats must be ordered first by breed and second by name. They are about to enter an elevator one by one. When all the cats of the same breed have entered they leave. We would like to know what the running total weight of the cats is.

Return: name, breed, running total weight

Order by: breed, name

Show Table
Show Desired Output

Query Window:

Click me!

Show Hint
Show Answer

Your output: