Home All Groups Group Topic Archive Search About
Author
18 Sep 2006 8:42 PM
Mark Goldin
Can I have CASE for something like this:

........

........

where  id in

case @TestVal

when 1 then

(select min(id) as id from ......)

else

(select max(id) as id from ....)

end



Thanks for help.

AddThis Social Bookmark Button