Sql Case When Else Postgresql Interview