Hello i have a very old and BIG query which gous like this:
select id, someValue, (select x from y inner join x on x.y = y.zzz) as filter
Now i need to filter for the deliverd variable like
select id, someValue, (select x from y inner join x on x.y = y.zzz) as filter
WHERE filter not 'badPractise'
Is there any way i can use it without making the same join in the where clausule?