結果 : how to use nested case statement in sql