By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
customer_id | contract_amount | date | contract_number |
---|---|---|---|
1 | 300.00 | 2019-02-01 | abc123 |
1 | 250.00 | 2019-02-03 | abc456 |
1 | 320.00 | 2019-04-02 | abc789 |
1 | 230.00 | 2019-07-03 | efg123 |
customer_id | contract_amount | date_authorized | contract_number | status |
---|---|---|---|---|
1 | 300.00 | 2019-01-03 | abc123 | Approved |
1 | 250.00 | 2019-01-06 | abc456 | Cancelled |
1 | 320.00 | 2019-02-01 | abc789 | Approved |
customer_id | contract_amount | date | contract_number | customer_id | contract_amount | date_authorized | contract_number | status |
---|---|---|---|---|---|---|---|---|
1 | 300.00 | 2019-02-01 | abc123 | 1 | 300.00 | 2019-01-03 | abc123 | Approved |
1 | 320.00 | 2019-04-02 | abc789 | 1 | 320.00 | 2019-02-01 | abc789 | Approved |
customer_id | contract_amount | date | contract_number | customer_id | contract_amount | date_authorized | contract_number | status |
---|---|---|---|---|---|---|---|---|
1 | 300.00 | 2019-02-01 | abc123 | 1 | 300.00 | 2019-01-03 | abc123 | Approved |
1 | 250.00 | 2019-02-03 | abc456 | 1 | 250.00 | 2019-01-06 | abc456 | Cancelled |
1 | 320.00 | 2019-04-02 | abc789 | 1 | 320.00 | 2019-02-01 | abc789 | Approved |
1 | 230.00 | 2019-07-03 | efg123 | null | null | null | null | null |
customer_id | year_total |
---|---|
1 | 850.00 |
customer_id | year_total |
---|---|
1 | 850.00 |