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 | 12/01/2018 00:00:00 | 0 |
2 | 23 | 30/01/2018 00:00:00 | 1 |
3 | 23 | 20/04/2018 00:00:00 | 0 |
4 | 23 | 02/05/2018 00:00:00 | 1 |