duplicate rows is not the same thing as multiple rows with the same value in a particular column
presumably if your table has a primary key, you will never have a duplicate row
for your question about company names, try this --
Code:
select companyname
, count(*) as rows
from daTable
group by companyname
having count(*) > 1