© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
5 replies
patryk

Querying different schema tables

Hello, could someone help me with querying supabase using javascript sdk?
I have two tables in relationship on different schemas:
1. "public"."company_profiles"(id, account_id, location)
2. "basejump"."accounts"(id, name)

How could i query company_profiles and include basejump.accounts(name)? The relationship is on "public"."company_profile"(account_id) and "basejump"."accounts"(id)

This doesn't work for me:
const { data, error } = await supabaseClient
        .from('company_profiles')   
        .select('account_id, basejump.accounts ( name )')
const { data, error } = await supabaseClient
        .from('company_profiles')   
        .select('account_id, basejump.accounts ( name )')
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

Querying foreign tables w SDK
SupabaseSSupabase / help-and-questions
4y ago
DATABASE ERROR QUERYING SCHEMA
SupabaseSSupabase / help-and-questions
6mo ago
Database error querying schema
SupabaseSSupabase / help-and-questions
13mo ago
Querying Joins and Nested tables issue
SupabaseSSupabase / help-and-questions
3mo ago