© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
Smardrengr

How to filter on joined table

I have three tables:
games
games
and
players
players
and
users
users
. A user can join a
game
game
, at which point a
player
player
record is created with a unique constraint on
game_id,user_id
game_id,user_id
.

I want to select all games for which a particular
player
player
has joined. So, I need to filter on the joined
players
players
table. But how? Also, I want to include games whose column
kind
kind
is
open
open
. So that will require some kind of or method, right?
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

Joined table filter includes null values
SupabaseSSupabase / help-and-questions
9mo ago
Filter original records, given a joined table
SupabaseSSupabase / help-and-questions
14mo ago
How to use .or() filter with joined table columns in Supabase?
SupabaseSSupabase / help-and-questions
4mo ago
How to count a joined foreign table?
SupabaseSSupabase / help-and-questions
4y ago