Are you expecting that there are duplicate "person_id" entries? If not, then remove that field from the select list because if each person_id field is a unique (PK) then you'll get one row back for each entry. Plus, I don't think that I've ever seen a sub-select statement that qualifies as a valid FROM clause, however, sub-select statements are often used to return single-column lists to be used in WHERE clause as in
SELECT DISTINCT f.fname, f.lname, ... FROM foo f WHERE f.category_id IN(SELECT DISTINCT catid FROM bar) Does this help at all :) Bill -----Original Message----- From: CF-Talk [mailto:[EMAIL PROTECTED] Sent: Monday, February 06, 2006 4:06 AM To: CF-Talk Subject: CF-Talk: Digest every hour CF-Talk 06-Feb-06 Issue:21672 In this issue: (ms sql) dinstinct not working... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231410 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