R
Rick
Is there an easy way to do this.
I have a table for which I want to run a query that does
not return records where two of the fields have duplicate
records (first name and last name). BUT I want to return
other fields other than these two fields (without
comparison based on them).
If I list the other fields in my SELECT, or in this case
SELECT DISTINCT, they are used as part of the comparison.
How can I return these other fields without this happening?
I am sure this is SQL 101, forgive me!
What I am trying to do is, I have a table (SLOPPY ONE)
that was given to me. I need to basically "de-dup" it
based on first name and last name. But I need to return
the associated addresses as well.
I know I can achive the first with a simple:
SELECT DISTINCT [Original table].Firstname, [Original
table].Lastname
FROM [Original table];
But if I add the address it throws out duplicates in that
as well!?
Thanks in advance.
Rick
I have a table for which I want to run a query that does
not return records where two of the fields have duplicate
records (first name and last name). BUT I want to return
other fields other than these two fields (without
comparison based on them).
If I list the other fields in my SELECT, or in this case
SELECT DISTINCT, they are used as part of the comparison.
How can I return these other fields without this happening?
I am sure this is SQL 101, forgive me!
What I am trying to do is, I have a table (SLOPPY ONE)
that was given to me. I need to basically "de-dup" it
based on first name and last name. But I need to return
the associated addresses as well.
I know I can achive the first with a simple:
SELECT DISTINCT [Original table].Firstname, [Original
table].Lastname
FROM [Original table];
But if I add the address it throws out duplicates in that
as well!?
Thanks in advance.
Rick