結果 : case statement in join postgres