I have written this query:
select distinct company_id,comp any_name from (select company_id, company_name from companies order by UPPER(company_n ame) asc);
It brings out an ordered company name list. But the values aren't unique.
Can you please help me understand what is wrong with the query?
I am using db2 V10.1 (LUW).
select distinct company_id,comp any_name from (select company_id, company_name from companies order by UPPER(company_n ame) asc);
It brings out an ordered company name list. But the values aren't unique.
Can you please help me understand what is wrong with the query?
I am using db2 V10.1 (LUW).
Comment