SQL query: Return duplicates
Hi,
could you please assist me with a SQL query. I need to analyse some data. I have two fields..call them fld1 and fld2.
The database should never have the same combination of fld1 and fld2.
so if record 1 has fld1=1 and fld2 = 4 then I shouldnt have this combination in any other record...
but these duplicates unfortunately exist and I have to find them all. I have over 30 000 records in the table.
Can you assist me with a query to find all records where the combination of fld1 and fld2 appears in more than 1 record?
Thanks in advance