Postgresql – How to return json formatted results for join query in postgres
I have this existing query: SELECT to_json(table1) FROM table1 To return all of table in a nice json format. I need to add a join to this query, so my new query looks something like this: SELECT (field1, field2, table2field1)…