I have the following condition in my stored procedure:
[DMO].[DriverModelName] =
CASE WHEN ISNULL(@driverModelName,'NotSet') = 'NotSet' THEN
[DMO].[DriverModelName]
ELSE
@driverModelName
END
This implies that when I pass 'NotSet' to varchar parameter @driverModelName, it should return all the rows but for some reason it's returning only those rows which has a value in column DriverModelName & omitting the null value rows.
Am I doing anything wrong here?