Hi, I can't seem to get this where clause to function as I wish.. must be
something simple but I can't see it!
have tried
ac.coursename like CASE @course WHEN null THEN '%' ELSE '%' + @course + '%'
ac.coursename like CASE @course WHEN '' THEN '%' ELSE '%' + @course + '%'
ac.coursename like CASE len(@course) WHEN 0 THEN '%' ELSE '%' + @course +
'%'
All work fine when I enter something in the parameter, but not when I leave
it blank! Any ideas why this is the ...case?
Cheers!
Chris