By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
8 rows affected
| name | r | a |
|---|---|---|
| Brian | 2022-04-25 | null |
| Brian | 2022-04-25 | null |
| Fredd | 2022-04-27 | null |
| Janet | 2022-05-01 | null |
| Janet | 2022-05-01 | null |
| Peter | null | 2022-05-01 |
| Frank | 2022-05-01 | null |
| Frank | null | 2022-05-02 |
| name | all_rejections | all_approvals | distinct_rejections | distinct_approvals |
|---|---|---|---|---|
| Brian | 2 | 0 | 1 | 0 |
| Frank | 1 | 1 | 1 | 1 |
| Fredd | 1 | 0 | 1 | 0 |
| Janet | 2 | 0 | 1 | 0 |
| Peter | 0 | 1 | 0 | 1 |