By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
8.0.30 |
Records: 3 Duplicates: 0 Warnings: 0
datetime | rupee | pound |
---|---|---|
2019-02-16 | 80% | 70% |
2019-02-17 | 30% | 60% |
2019-02-18 | 67% | 89% |
json_arrayagg(obj) |
---|
[{"data": [["2019-02-17", "60%"], ["2019-02-16", "70%"], ["2019-02-18", "89%"]], "currency": "pound"}, {"data": [["2019-02-17", "30%"], ["2019-02-18", "67%"], ["2019-02-16", "80%"]], "currency": "rupee"}] |