By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
8.0.26 |
bsd | bid | status | diff |
---|---|---|---|
2020-07-27 | 100 | active | 19506 |
2020-07-27 | 100 | active | 19499 |
2018-12-27 | 101 | inactive | 19497 |
2018-12-27 | 101 | inactive | 19504 |
bsd | bid | bstat | mdiff |
---|---|---|---|
2020-07-27 | 100 | active | 19499 |
2018-12-27 | 101 | inactive | 19497 |
bsd | bid | bstat | period_end_date | id | mdiff | p.period_end_date - t.bsd | code_a | code_b |
---|---|---|---|---|---|---|---|---|
2020-07-27 | 100 | active | 2018-12-28 | 100 | 19499 | -19499 | 2 | 3 |
2018-12-27 | 101 | inactive | 2020-07-24 | 101 | 19497 | 19497 | 3 | 4 |