wmix,
If you provide the table structures/designs including indexes, and the SQL for the query(ies) involved, I'm sure you'll get focused responses.
The critical factor/concept is what field or combination of fields in your query make(s) each record unique. Since you have "duplicates", some...