By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
4 rows affected
visit | patientid | visit_date | flag |
---|---|---|---|
1 | 23 | 2018-01-12 | 0 |
2 | 23 | 2018-01-30 | 1 |
3 | 23 | 2018-04-20 | 0 |
4 | 23 | 2018-05-02 | 1 |
4 rows affected
visit | patientid | visit_date | flag |
---|---|---|---|
1 | 23 | 2018-01-12 | 0 |
2 | 23 | 2018-01-30 | 1 |
3 | 23 | 2018-04-20 | 0 |
4 | 23 | 2018-05-02 | 1 |