I have a local variable say @var
I want to select some data from a table XY based on the values of these local variable. The values for the local variable can be NULL or have data
Here is what I want, I want to write a single query to select data from the table only if the variable is not null otherwise I won't select. how calI do that
Thanks
teddy
I want to select some data from a table XY based on the values of these local variable. The values for the local variable can be NULL or have data
Here is what I want, I want to write a single query to select data from the table only if the variable is not null otherwise I won't select. how calI do that
Thanks
teddy