Selecting against foreign table using OR condition when joining across tables #19213
Unanswered
OpenFieldsOfOz
asked this question in
Questions
Replies: 1 comment 3 replies
-
Not sorting thru all the code, but .or() only works on the same table for all filters. At some point you are better off just using an rpc call to postgres function or a view. If I'm missing your context sorry, mainly going on your title "when joining across tables" |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The app I'm building tracks books, and lets users filter them by tags. My schema is as depicted below
To filter by a tag, I need to join
tags
andbook_tags
tobooks
, then select on tags. An example very simple query would beI'm having trouble using the JS integration to write a query like this. When I write
I get the error
I think this error is ocurring because I am trying to qualify the table name, because not doing so results in this error
Beta Was this translation helpful? Give feedback.
All reactions