G
Guest
Why is this giving me two rows for 2 different contact_id's when the mailing
address for them is the same? When run alone, the third select brings back
only the first, which is what I need.
SELECT [contact].[mailing_salutation], [contact].[home_address_street],
[contact].[home_address_street2], [contact].[home_address_city],
[contact].[home_address_state], [contact].[home_address_zip]
FROM contact
WHERE (((contact.contact_id) In (select contact_id from (select
first(contact_id), mailing_salutation from contact group by
mailing_salutation))) AND ((contact.client_type) In ('AP','BP')));
address for them is the same? When run alone, the third select brings back
only the first, which is what I need.
SELECT [contact].[mailing_salutation], [contact].[home_address_street],
[contact].[home_address_street2], [contact].[home_address_city],
[contact].[home_address_state], [contact].[home_address_zip]
FROM contact
WHERE (((contact.contact_id) In (select contact_id from (select
first(contact_id), mailing_salutation from contact group by
mailing_salutation))) AND ((contact.client_type) In ('AP','BP')));