select a.* from pub_drugcode a
,(select drug_name,yk_stds
from pub_drugcode
group by drug_name,yk_stds
having count(1) > 1
) as b
where a.drug_name=b.drug_name
and a.yk_stds=b.yk_stds
select a.* from pub_drugcode a
,(select drug_name,yk_stds
from pub_drugcode
group by drug_name,yk_stds
having count(1) > 1
) as b
where a.drug_name=b.drug_name
and a.yk_stds=b.yk_stds