DENSE_RANK's output
You have the following table:
| Country | Medals |
|---------|--------|
| IRN | 23 |
| IRQ | 19 |
| LBN | 19 |
| SYR | 19 |
| BHR | 7 |
| KSA | 3 |
If you were to use DENSE_RANK
to order the Medals
column in descending order, what rank would BHR
be assigned?
This exercise is part of the course
PostgreSQL Summary Stats and Window Functions
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
