add batch remove batch split batch comment selection show hidden batches hide batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
15 rows affected
customer_id mis_date status oldstatus
10003 01/01/2014 00:00:00 1 1
10003 02/01/2014 00:00:00 1 1
10003 03/01/2014 00:00:00 0 1
10003 04/01/2014 00:00:00 0 0
10003 05/01/2014 00:00:00 0 0
10003 06/01/2014 00:00:00 1 0
10003 07/01/2014 00:00:00 1 1
10003 08/01/2014 00:00:00 1 1
10003 09/01/2014 00:00:00 1 1
10003 10/01/2014 00:00:00 0 1
10003 11/01/2014 00:00:00 0 0
10003 12/01/2014 00:00:00 0 0
10003 13/01/2014 00:00:00 1 0
10003 14/01/2014 00:00:00 1 1
10003 15/01/2014 00:00:00 1 1
customer_id mis_date status oldstatus grp
10003 01/01/2014 00:00:00 1 1 1
10003 02/01/2014 00:00:00 1 1 1
10003 03/01/2014 00:00:00 0 1 null
10003 04/01/2014 00:00:00 0 0 null
10003 05/01/2014 00:00:00 0 0 null
10003 06/01/2014 00:00:00 1 0 2
10003 07/01/2014 00:00:00 1 1 2
10003 08/01/2014 00:00:00 1 1 2
10003 09/01/2014 00:00:00 1 1 2
10003 10/01/2014 00:00:00 0 1 null
10003 11/01/2014 00:00:00 0 0 null
10003 12/01/2014 00:00:00 0 0 null
10003 13/01/2014 00:00:00 1 0 3
10003 14/01/2014 00:00:00 1 1 3
10003 15/01/2014 00:00:00 1 1 3
Warning: Null value is eliminated by an aggregate or other SET operation.