You could make the query a bit indented by the way.
In reply to Re: Problem with case in select statement by zby in thread Problem with case in select statement by SamueD2