James Smith wrote:
> 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
SELECT Email, MAX("Full Name") AS "Full Name"
FROM table
GROUP BY Email
Jochem
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:184998
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54