Related Post: Case When With Multiple Conditions In Postgresql Sql Case When Multiple Conditions Postgresql Case When With Multiple Conditions Case When Condition In Postgresql