Connecting Tech Pros Worldwide Help | Site Map

query to include an entry only once (omit second occurance)

emandel's Avatar
Member
 
Join Date: Dec 2006
Posts: 51
#1: Nov 7 '07
I have a query which is giving me [first name] [last name] and [e-mail]
This is a Union Query and therefor some records are repeated. In addition some households have differant members wusing the same e-mail. How do I make a second query to show me all of the data from the first query but to OMIT the second entry when an e-mail is repeated?
Thak you!
Expert
 
Join Date: Jun 2007
Location: Derbyshire, UK
Posts: 347
#2: Nov 7 '07

re: query to include an entry only once (omit second occurance)


Quote:

Originally Posted by emandel

I have a query which is giving me [first name] [last name] and [e-mail]
This is a Union Query and therefor some records are repeated. In addition some households have differant members wusing the same e-mail. How do I make a second query to show me all of the data from the first query but to OMIT the second entry when an e-mail is repeated?
Thak you!

Hi
As I understand it, if all the fields selected in the query are IDENTICAL in two or more records of a Union query, then only one record is returned, unless you use the ALL keyword ??

MTB
emandel's Avatar
Member
 
Join Date: Dec 2006
Posts: 51
#3: Nov 8 '07

re: query to include an entry only once (omit second occurance)


Quote:

Originally Posted by MikeTheBike

Hi
As I understand it, if all the fields selected in the query are IDENTICAL in two or more records of a Union query, then only one record is returned, unless you use the ALL keyword ??

MTB

I am interested in it returning only one record even if it's only the e-mail that is identical. I only want to send one e-mail out even if there are 2 unique people listed sharing that e-mail. Thanx
Expert
 
Join Date: Jun 2007
Location: Derbyshire, UK
Posts: 347
#4: Nov 8 '07

re: query to include an entry only once (omit second occurance)


Quote:

Originally Posted by emandel

I am interested in it returning only one record even if it's only the e-mail that is identical. I only want to send one e-mail out even if there are 2 unique people listed sharing that e-mail. Thanx

If the email addresses are identical, why are the other fields different, surley an email address applies to one person !!
If not how are you going to decide which record with this addess to return/eliminate?

MTB
Reply