結果 : case statement with inner join in sql