Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’4y agoβ€’
6 replies
jbergius

Filter inner joins

Hey guys!

I have a select that looks like this:
supabase
      .from('subscriptions')
      .select('*, prices(*, products(*))')
      .in('status', ['trialing', 'active']);
supabase
      .from('subscriptions')
      .select('*, prices(*, products(*))')
      .in('status', ['trialing', 'active']);


But what I would like to do is to make an inner join filter on the products table.
I would like to get all subscriptions that dosen't match a specific product. Something like:
 supabase
      .from('subscriptions')
      .select('*, prices(*, products!inner(*))')
      .neq('products.id', 'prod_MSjuJNMlVA1zBF')
      .in('status', ['trialing', 'active']);
 supabase
      .from('subscriptions')
      .select('*, prices(*, products!inner(*))')
      .neq('products.id', 'prod_MSjuJNMlVA1zBF')
      .in('status', ['trialing', 'active']);


Is that possible?
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

Query with two inner joins Flutter
SupabaseSSupabase / help-and-questions
4y ago
Filter Posts based on Labels, but still receive all Labels (inner join)
SupabaseSSupabase / help-and-questions
4y ago
Joins not working
SupabaseSSupabase / help-and-questions
4y ago
inner join really slow
SupabaseSSupabase / help-and-questions
4y ago