© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
2 replies
Deleted User

How do I aggregate multiple rows of a joined table in SQL?

I have query 2 tables: jobs and jobs_filters. The jobs_filters is a M-M table to reference between jobs and filters. It contains job_id and a filter_id.

Currently when I query the tables I get back a lot of rows (many filters for each job). How do I aggregate filter_id into a list, so there would be only 1 row per a job?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Limit the rows from inner joined table
SupabaseSSupabase / help-and-questions
4y ago
number of rows limit in a single table
SupabaseSSupabase / help-and-questions
6mo ago
How to count a joined foreign table?
SupabaseSSupabase / help-and-questions
4y ago
Selecting symmetric rows in sql
SupabaseSSupabase / help-and-questions
4y ago