結果 : case statement in sql with inner join