Teradata Select Count Distinct