Using Postgres::array_agg function to aggregate string columns
Thanks to @copquevictor I learned a very handy Postgres aggregate function: array_agg. To understand it, suppose you have to notify stakeholders of reports and your query outputs the table below: As…