Don't think that is a valid syntax is it? 

> -----Original Message-----
> From: Katz, Dov B (IT) [mailto:[EMAIL PROTECTED] 
> Sent: 22 November 2004 14:03
> To: CF-Talk
> Subject: RE: Modification of a distinct query
> 
> Wouldn't this work:
> 
> select distinct(email), "Full Name" from Your_Table?
> 
> -Dov 
> 
> 
> 
> 
> -----Original Message-----
> From: James Smith [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 22, 2004 8:56 AM
> To: CF-Talk
> Subject: Modification of a distinct query
> 
> What is the simplest way (preferably without multiple 
> queries) of selecting a single instance of an email address 
> even if multiple different names are attached.  Let me give 
> you an example...
> 
> DATA
> ----
> Email                   Full Name
> ----------------------  ---------
> [EMAIL PROTECTED]      James Smith
> [EMAIL PROTECTED]      Jay Smith
> [EMAIL PROTECTED]  James Smith
> 
> QUERY RESULTS
> -------------
> Email                   Full Name
> ----------------------  ---------
> [EMAIL PROTECTED]      James Smith
> [EMAIL PROTECTED]  James Smith
> 
> I don't care which of the two "[EMAIL PROTECTED]" results 
> comes out, I just require one of them.  Obviously I can't use 
> DISTINCT because the two results would be distinct because of 
> the different full name.
> 
> --
> James Smith
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185000
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to