By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
store_nbr | zipcode | distance |
---|---|---|
123 | 76135 | 2.356 |
456 | 76135 | 3.002 |
789 | 76135 | 9.521 |
store_nbr | zipcode | distance | ROW_RANK | D_RANK | R_RANK |
---|---|---|---|---|---|
123 | 76135 | 2.356 | 1 | 1 | 1 |
456 | 76135 | 3.002 | 2 | 2 | 2 |
789 | 76135 | 9.521 | 3 | 3 | 3 |