Query - No duplicate records

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a join query that has duplicate customer names. I only want the
customer name to appear once. Is there a way to easily do this?

Thanks in advance.
 
It depends on what the values of the other fields are.

Access supports two different DISTINCT clauses in SQL statements: SELECT
DISTINCT and SELECT DISTINCTROW.

SELECT DISTINCT Field1, Field2, Field3

will eliminate duplicates where Field1, Field2 and Field3 are the same.

SELECT DISTINCTROW Field1, Field2, Field3

will only eliminate duplicates of Field1, Field2 and Field3 if all the other
fields in the table are also duplicated. (To be honest, I've never really
seen the point of SELECT DISTINCTROW!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top