Answer by ceadreak for postgresql json aggregate
SELECT pid from activity a, ( select json_agg(project) from project where code = a.code ) as p Something like that ...
View ArticleAnswer by Abelisto for postgresql json aggregate
select pid, json_agg(json_build_object('code',code,'name',name)) from ... group by pid
View Articlepostgresql json aggregate
I'm using postgres 9.4, I have the following query: SELECT pid, code, name FROM activity, ( SELECT code FROM project ) projects WHERE activity.pcode = projects.code; which return this following...
View Article
More Pages to Explore .....