With condition

I am using db.query to fetch some data with a lot of related data.

One of the with statements is only applicable if a column value from another joined table is a certain value.

Does with support a where that uses another joined tables data? If so, what does the syntax look like?
Was this page helpful?