select FIELDNAME, case count(FIELDNAME) when 1 then 0 else 1 end as Duplicate from TABLENAME group by FIELDNAME
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)