That happened to me too - then I found out it was trailing white 
spaces.. try trimming the white spaces



Jim McAtee wrote:

>Any ideas why I might be seeing duplicate email addresses in the dataset
>returned by this simple query (Access 97 via ODBC)?
>
><cfquery name="r" datasource="#dsn#">
>SELECT DISTINCT(email), name
>FROM table1
>WHERE status = 'A'
>  AND email <> ''
></cfquery>
>
>In the output, I'm seeing stuff like:
>
>[EMAIL PROTECTED]        Bob Smith
>[EMAIL PROTECTED]        B. Smith
>
>The DISTINCT() operates on only the email column in this query, correct?
>
>Jim
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to