By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
ID | createdDate | productId | customerId |
---|---|---|---|
1 | 2020-01-01 | 1 | 1 |
1 | 2020-01-01 | 2 | 2 |
1 | 2020-01-01 | 3 | 1 |
1 | 2020-01-01 | 4 | 3 |
1 | 2020-01-01 | 5 | 2 |
1 | 2020-01-01 | 4 | 3 |
1 | 2020-08-01 | 3 | 1 |
1 | 2020-08-02 | 6 | 1 |
1 | 2020-05-01 | 3 | 1 |
newer | older |
---|---|
0 | 1 |
1 | 2 |
1 | 0 |
newerCount | olderCount |
---|---|
2 | 1 |