DEV Community

Discussion on: How I do solve this impossible SQL query?

Collapse
 
sekr4 profile image
Sebastian

Do the aggregation functions work in that query? Looks like you could add a group by at the end, like:
"
group by
articles.id,
articles.title,
articles.published_at,
articles.positive_reactions_count,
articles.cached_tag_list,
collections.slug
"

Collapse
 
francoislagier profile image
Francois LAGIER

Of course not ... I forgot the group by. Thanks for pointing that.