結果 : multiple case condition in postgresql