hello,
in my query's WHERE clause i have this code:
...
where @PageID in (...subquery...) or not exists(...subquery...)
...
where the subquery is the same in both cases. that is, i want @PageID to appear in the subquery only if the subquery is not empty. is there a way to use the subquery once with the same effect?
thanks konstantin