By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| Account | Account_Type | business_month_start | business_month_end | total_debit_balance |
|---|---|---|---|---|
| 1234 | Normal | 2023-01-02 | 2023-02-02 | 100 |
| 4567 | Normal | 2023-01-02 | 2023-02-02 | 500 |
| 8120 | Normal | 2023-02-02 | 2023-03-02 | 500 |
| 8990 | Normal | 2023-04-02 | 2023-05-02 | 500 |
| 8330 | Normal | 2023-05-02 | 2023-06-02 | 500 |
| 8340 | Normal | 2023-05-02 | 2023-06-02 | 500 |
| 8550 | Normal | 2023-05-02 | 2023-06-02 | 500 |
| 8790 | Normal | 2023-05-02 | 2023-06-02 | 500 |
| 8490 | Premimum | 2023-05-05 | 2023-06-05 | 500 |
| 8660 | Super_prem | 2023-05-10 | 2023-06-10 | 500 |