結果 : case when postgresql