By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
2 rows affected
date | IssueId | Days_Open |
---|---|---|
2012-01-01 00:00:00.000 | 1 | 0 |
2012-01-02 00:00:00.000 | 1 | 1 |
2012-01-03 00:00:00.000 | 1 | 2 |
2012-01-03 00:00:00.000 | 2 | 0 |
2012-01-04 00:00:00.000 | 1 | 3 |
2012-01-04 00:00:00.000 | 2 | 1 |
2012-01-05 00:00:00.000 | 1 | 4 |
2012-01-05 00:00:00.000 | 2 | 2 |
2012-01-06 00:00:00.000 | 2 | 3 |
2012-01-07 00:00:00.000 | null | null |
date | (No column name) |
---|---|
2012-01-01 00:00:00.000 | 0 |
2012-01-02 00:00:00.000 | 1 |
2012-01-03 00:00:00.000 | 1 |
2012-01-04 00:00:00.000 | 2 |
2012-01-05 00:00:00.000 | 3 |
2012-01-06 00:00:00.000 | 3 |
2012-01-07 00:00:00.000 | 0 |
Warning: Null value is eliminated by an aggregate or other SET operation.