By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
10 rows affected
person_id | bill_date | service_type | prior_services |
---|---|---|---|
1 | 2020-01-01 | A | 0 |
1 | 2020-01-03 | A | 1 |
1 | 2020-02-04 | A | 2 |
1 | 2020-01-02 | B | 0 |
1 | 2020-01-04 | B | 1 |
person_id | bill_date | service_type | prior_services |
---|---|---|---|
1 | 2020-01-01 | A | 0 |
1 | 2020-01-03 | A | 1 |
1 | 2020-02-04 | A | 2 |