limiting a join when filtering by an extra field.
I have a query which finds properties based on how far away they are from a certain point and then joins some other tables.
I would also like to join a
However, I am not sure if this filtering based on a calculated field is possible.
I would also like to join a
propertyImages table but I only want to bring the first 5 of them. I know that this is beautifully easy using relational queries because I can do However, I am not sure if this filtering based on a calculated field is possible.
extras is there but then I can't include that in the where clause of the relational query. Maybe I should not join the images table and do a subquery there?