Oracle Sql Count Distinct Case Statement