By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 3
| work_expensesid | workid | employeeid | date_linkid | expense_categoryid | cost_incl_gst | note |
|---|---|---|---|---|---|---|
| 1 | null | 1 | 220 | 4 | 5.00 | null |
| 2 | null | 1 | 220 | 5 | 33.75 | null |
| 3 | 631 | 1 | 218 | 13 | 21.50 | trailer load of tree branches |
SELECT 3