C
connorslack
hey All,
I have a table with 110,453 people/records. When I run a dedupe SQL
statement on the "emailID" field, i get 90,167 unique records, which
is perfect, and it also puts beside each unique email a "count" of how
many times that particular record appears in the database.
My problem arises when i add a second field, lets say "newsletter"
this filed denotes if the user has opted in to receive a newsletter
("yes" or "no"). My problem is that when i add this field in, the
query no longer becomes deduped because for those users who entered
more than once have put Yes for one entry, and No for another, there
fore rendering my dedupe query useless for that particular record and
so forth.
I have tried to put in the "total" column in the query editor "first"
to pick the very first record of each email, but what happens if the
very first record for newsletter for a particular email is "no" but
the second record for the record(assuming this is a deduped record we
have come to) is Yes? if i run a query for all Unique emails with
newsletter = yes, my query wont be right.
Thanks all.
I have a table with 110,453 people/records. When I run a dedupe SQL
statement on the "emailID" field, i get 90,167 unique records, which
is perfect, and it also puts beside each unique email a "count" of how
many times that particular record appears in the database.
My problem arises when i add a second field, lets say "newsletter"
this filed denotes if the user has opted in to receive a newsletter
("yes" or "no"). My problem is that when i add this field in, the
query no longer becomes deduped because for those users who entered
more than once have put Yes for one entry, and No for another, there
fore rendering my dedupe query useless for that particular record and
so forth.
I have tried to put in the "total" column in the query editor "first"
to pick the very first record of each email, but what happens if the
very first record for newsletter for a particular email is "no" but
the second record for the record(assuming this is a deduped record we
have come to) is Yes? if i run a query for all Unique emails with
newsletter = yes, my query wont be right.
Thanks all.