By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
8 rows affected
| Type | Name | Score | Rank |
|---|---|---|---|
| Dog | Rocky | 70 | 1 |
| Dog | Teddy | 50 | 2 |
| Cat | Ted | 46 | 3 |
| Cat | Zoe | 45 | 3 |
| Dog | Daisy | 30 | 3 |
| Dog | Duke | 20 | 4 |
| Dog | Buddy | 20 | 4 |
| Dog | Max | 10 | 6 |
Warning: Null value is eliminated by an aggregate or other SET operation.
| Type | Name | Score | DenseRank | Rank |
|---|---|---|---|---|
| Dog | Rocky | 70 | 1 | 1 |
| Dog | Teddy | 50 | 2 | 2 |
| Cat | Ted | 46 | 3 | 3 |
| Cat | Zoe | 45 | 3 | 3 |
| Dog | Daisy | 30 | 3 | 3 |
| Dog | Buddy | 20 | 4 | 6 |
| Dog | Duke | 20 | 4 | 6 |
| Dog | Max | 10 | 5 | 8 |
Warning: Null value is eliminated by an aggregate or other SET operation.