By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version() |
|---|
| 10.6.9-MariaDB-1:10.6.9+maria~deb11 |
Records: 3 Duplicates: 0 Warnings: 0
| id | name |
|---|---|
| 1 | bolt |
| 2 | wrench |
| 3 | hammer |
Records: 2 Duplicates: 0 Warnings: 0
| id | item_id | quantity |
|---|---|---|
| 1 | 1 | 10.00 |
| 2 | 2 | 8.00 |
| id | item_id | quantity |
|---|---|---|
| 1 | 1 | 5.00 |
| id | name | balance |
|---|---|---|
| 1 | bolt | 5.00 |
| 2 | wrench | 8.00 |
| 3 | hammer | 0.00 |