By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | username | netprofit | date |
---|---|---|---|
1 | testuser01 | 20 | 2020-09-27 14:00:00 |
2 | testuser02 | 30 | 2020-09-27 14:00:00 |
3 | testuser03 | 40 | 2020-09-27 14:00:00 |
4 | testuser02 | 20 | 2020-09-26 14:00:00 |
5 | testuser03 | 30 | 2020-09-26 14:00:00 |
6 | testuser03 | 30 | 2020-08-27 14:00:00 |
7 | testuser01 | 20 | 2020-08-27 14:00:00 |
8 | testuser03 | 30 | 2019-12-01 14:00:00 |
9 | testuser01 | 20 | 2019-12-01 14:00:00 |
username | netprofit | date | rank |
---|---|---|---|
testuser03 | 40 | 2020-09-27 14:00:00 | 1 |
testuser02 | 30 | 2020-09-27 14:00:00 | 2 |
testuser01 | 20 | 2020-09-27 14:00:00 | 3 |
testuser03 | 30 | 2020-09-26 14:00:00 | 1 |
testuser02 | 20 | 2020-09-26 14:00:00 | 2 |
testuser03 | 30 | 2020-08-27 14:00:00 | 1 |
testuser01 | 20 | 2020-08-27 14:00:00 | 2 |
testuser03 | 30 | 2019-12-01 14:00:00 | 1 |
testuser01 | 20 | 2019-12-01 14:00:00 | 2 |
username | sum(netprofit) | date | rank |
---|---|---|---|
testuser03 | 70 | 2020-09 | 1 |
testuser02 | 50 | 2020-09 | 2 |
testuser01 | 20 | 2020-09 | 3 |
testuser03 | 30 | 2020-08 | 1 |
testuser01 | 20 | 2020-08 | 2 |
testuser03 | 30 | 2019-12 | 1 |
testuser01 | 20 | 2019-12 | 2 |
username | sum(netprofit) | date | rank |
---|---|---|---|
testuser03 | 70 | 2020-09 | 1 |
testuser02 | 50 | 2020-09 | 2 |
testuser01 | 20 | 2020-09 | 3 |
testuser03 | 30 | 2020-08 | 1 |
testuser01 | 20 | 2020-08 | 2 |
testuser03 | 30 | 2019-12 | 1 |
testuser01 | 20 | 2019-12 | 2 |
username | sum(netprofit) | date | rank |
---|---|---|---|
testuser03 | 70 | 2020-09 | 1 |
testuser02 | 50 | 2020-09 | 2 |
testuser01 | 20 | 2020-09 | 3 |
testuser03 | 30 | 2020-08 | 1 |
testuser01 | 20 | 2020-08 | 2 |
testuser03 | 30 | 2019-12 | 1 |
testuser01 | 20 | 2019-12 | 2 |