By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
15 rows affected
student_id | record_date | section | flag |
---|---|---|---|
123 | 2020-02-06 | null | null |
123 | 2020-05-14 | A | 1 |
123 | 2020-08-12 | A | 1 |
123 | 2020-09-01 | B | 2 |
123 | 2020-09-15 | A | 3 |
123 | 2020-09-29 | A | 3 |
123 | 2020-11-02 | null | null |
123 | 2020-11-30 | null | null |
789 | 2020-01-12 | null | null |
789 | 2020-04-12 | A | 1 |
789 | 2020-05-03 | null | null |
789 | 2020-06-13 | A | 2 |
789 | 2020-06-30 | B | 3 |
789 | 2020-07-01 | B | 3 |
789 | 2020-07-22 | A | 4 |
Warning: Null value is eliminated by an aggregate or other SET operation.