Unique Numbers

Question:

The cats form a line grouped by color. Inside each color group the cats order themselves by name. Every cat must have a unique number for its place in the line.

We must assign each cat a unique number while maintaining their color & name ordering.

Return: unique_number, name, color

Show Table
Show Desired Output

Query Window:

Click me!

Show Hint
Show Answer

Your output: