By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| Id | CreationDate | DeletionDate | PostId |
|---|---|---|---|
| 1 | 2020-01-01 | 2020-01-04 | 1 |
| 13 | 2020-01-02 | 2020-01-05 | 1 |
| 3 | 2020-01-07 | 2020-01-11 | 1 |
| 7 | 2020-01-11 | 2020-01-13 | 1 |
| 5 | 2020-01-12 | 2020-01-14 | 1 |
| 11 | 2020-01-13 | 2020-01-15 | 1 |
| 9 | 2020-01-22 | 2020-01-25 | 1 |
| 2 | 2020-01-03 | 2020-01-07 | 2 |
| 4 | 2020-01-05 | 2020-01-10 | 2 |
| 12 | 2020-01-07 | 2020-01-11 | 2 |
| 8 | 2020-01-09 | 2020-01-13 | 2 |
| 14 | 2020-01-10 | 2020-01-13 | 2 |
| 6 | 2020-01-16 | 2020-01-27 | 2 |
| 10 | 2020-01-24 | 2020-01-28 | 2 |
| PostId | MaxCnt |
|---|---|
| 1 | 3 |
| 2 | 4 |
Warning: Null value is eliminated by an aggregate or other SET operation.
| PostId | MaxCnt |
|---|---|
| 1 | 3 |
| 2 | 4 |