SELECT * FROM (select *,ROW_NUMBER() over(partition by tenant_group_company_code) as rn from ocp_tenant_group) as u where u.rn= 1;
SELECT tenant_group_company_code FROM (select tenant_group_company_code,ROW_NUMBER() over(partition by tenant_group_company_code) as rn from ocp_tenant_group) as u where u.rn= 1;