First, you should be able to fine tune this without any problem by adding
all the required logical comparaisons that will suit your exact needs.
Second, I don't see the logic of using a Left Outer Join if you are not
interested with Null values on the right side.

Signature
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
> the only problem with that is that if specify a specific value for
> @tbl2Var1
[quoted text clipped - 9 lines]
>>> I'm guessing I need an if statement to check for Tbl2var1 = null but my
>>> attempts are proving unsuccessful. Any help is appreciated.
Jeff - 25 Jul 2005 16:31 GMT
I am interested in the null values in certain cases (i.e. wildcard should
return all records from left side). I thought the solution would be a lot
easier but I guess I'll have to re-think this one.
>First, you should be able to fine tune this without any problem by adding
>all the required logical comparaisons that will suit your exact needs.
[quoted text clipped - 7 lines]
>>>> I'm guessing I need an if statement to check for Tbl2var1 = null but my
>>>> attempts are proving unsuccessful. Any help is appreciated.