Hi,
can anyone tell me if it is possible to make a conditional join in an attribute or calculation view?
What I want to simulate is this type of SQL
SELECT ...
case group
when 'a_value'
then ( select rp.omschrijving
from zst_aut_rp as rp
where rp.rpid = basis.fm_rp )
else ( select grp.omschrijving
from zst_grp as grp
where grp.groep = basis.fm_rp )
end as description ,
...
I can make the two joins and afterwards put the resulting fields into one calculated field, but I don't think that is the most performant way.
Maybe I can put a SELECT in the definition of a calculated field?
Kind regards and thanks for any help.
Kris