Select multiple aggregates of a joined table on Postgres
问题 Given the tables projects : id | bigint | not null default nextval('projects_id_seq'::regclass) name | character varying | created_at | timestamp(6) without time zone | not null updated_at | timestamp(6) without time zone | not null and tasks : id | bigint | not null default nextval('tasks_id_seq'::regclass) name | character varying | project_id | bigint | not null created_at | timestamp(6) without time zone | not null updated_at | timestamp(6) without time zone | not null status | task