Quantcast
Channel: postgresql json aggregate - Stack Overflow
Browsing all 3 articles
Browse latest View live

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 Article



Answer by Abelisto for postgresql json aggregate

select pid, json_agg(json_build_object('code',code,'name',name)) from ... group by pid

View Article

postgresql 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
Browsing all 3 articles
Browse latest View live




Latest Images

Pangarap Quotes

Pangarap Quotes

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC