By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version |
|---|
| PostgreSQL 11.13 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1), 64-bit |
4 rows affected
7 rows affected
| invoicenum | layer | invoiceitemnum |
|---|---|---|
| 1 | 10 | 1 |
| 2 | 3 | 2 |
| 3 | 0 | 1 |