To find duplicate values in the same field, you need to use an alias with the same table twice. Perhaps seeing this is easier than explaining it. Notice in the following example that the customer table is added twice to the "from" clause in the SQL statement. Then in the where clause both c1 and c2 aliases are used to refer to the same table. First we use both aliases to mach up the City column. Then we use both aliases to exclude the primary key.
Finding Duplicates in a single column:
select c1.*
from "customer.db" c1, "customer.db" c2
where c1."City" = c2."City"
and c1."Customer No" <> c2."Customer No"
Finding Duplicates in Multiple Fields:
select c1.*
from "customer.db" c1, "customer.db" c2
where c1."City" = c2."City"
and c1."State" = c2."State"
and c1."Customer No" <> c2."Customer No"
For multiple column primary key fields, you would add a line similar to the last line for each column.