By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 6 Duplicates: 0 Warnings: 0
| id | ownerid | sourceid | incomeType | status | created | amount | isFirstIncome |
|---|---|---|---|---|---|---|---|
| 4 | myId | SRC1 | passive | paid | 2022-05-04 | 300 | 0 |
| 6 | otherId | SRC1 | active | paid | 2022-05-04 | 300 | 0 |
| 3 | myId | SRC1 | passive | paid | 2022-05-03 | 100 | 0 |
| 5 | otherId | SRC1 | active | paid | 2022-05-03 | 100 | 0 |
| 1 | myId | SRC1 | passive | paid | 2022-05-02 | 100 | 1 |
| 2 | myId | SRC2 | passive | paid | 2022-05-01 | 300 | 1 |
| id | ownerid | sourceid | incomeType | status | created | amount | isFirstIncome |
|---|---|---|---|---|---|---|---|
| 4 | myId | SRC1 | passive | paid | 2022-05-04 | 300 | 0 |
| 6 | otherId | SRC1 | active | paid | 2022-05-04 | 300 | 0 |
| 3 | myId | SRC1 | passive | paid | 2022-05-03 | 100 | 0 |
| 5 | otherId | SRC1 | active | paid | 2022-05-03 | 100 | 0 |
| 1 | myId | SRC1 | passive | paid | 2022-05-02 | 100 | 1 |
| 2 | myId | SRC2 | passive | paid | 2022-05-01 | 300 | 1 |