use the nvl() function and or case, plus whats the error?