By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
@rn := 1 | @lead_id_lag := 0 |
---|---|
1 | 0 |
lead_id | comment_id | follow_up_time | comment_data | assigned_to |
---|---|---|---|---|
1 | 3 | 2018-08-27 17:18:00 | new task line1 | Smith |
2 | 4 | 2018-09-27 20:18:26 | new task line3 | Drew |
3 | null | null | null | Amit |