Oracle Sql Count Distinct Case Statement C