By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
1 rows affected
1 rows affected
1 rows affected
| main_id | client_id | project_id | test | date | mydata |
|---|---|---|---|---|---|
| 1 | 1 | 1 | null | null | [{"pItems": [{"pid": 1, "stock": 500}], "heading": "one"}] |
ERROR: invalid reference to FROM-clause entry for table "mt"
LINE 12: ... INNER JOIN clients client ON client.client_id = mt.client_...
^
HINT: There is an entry for table "mt", but it cannot be referenced from this part of the query.