skip to Main Content

how can I make result of ARRAY_AGG() function json parsable – Postgresql

I have a query that selects the rows from joined table as an array using ARRAY_AGG() function. select entity_number, ARRAY_AGG('{"property_id":"'||property_id||'","value":"'||value||'"}') entity_properties from entities join entity_properties on entities.id = entity_properties.entity_id where entities.id in ( select entity_id from entity_properties where value =…

VIEW QUESTION
Back To Top
Search