© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
5 replies
iStun4Fun

Query based on user ID and other Table

As i cant refer text to text on relations, I need to do a query to fetch like following:

Sum all Total Revenue where store_royalties.Label = music_label_name => ref Owner.uuid = Auth.uuid

Or maybe I Should premodel the data to add a INT at Store Royalties and refer where Label Name = Label_ID to link them for faster sums later?

I'm so stuck on this and Would LOVE to have a hand on how to solve it...
image.png
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

Unable to insert based on user_id
SupabaseSSupabase / help-and-questions
4y ago
Securing rows based on another table.
SupabaseSSupabase / help-and-questions
4y ago
Query foreign tables between a post and a user
SupabaseSSupabase / help-and-questions
4y ago
How to get current user analytics based on 3 tables
SupabaseSSupabase / help-and-questions
4y ago