> I'm using MySQL (4.0) version, which doesn't support subqueries, so I need
to rewrite this as a join query...how would I > do that?

Well, here's a clumsy idea that gets the job done.  Do an outer join (don't
know the exact syntax for MySQL) that gets you two columns in each row:
email address from classroom_access_list and email address from
classroom_access_list.  In your output, you just say if column 1 is blank,
use column 2, otherwise, use column 1.  The values will be deduped by virtue
of the fact that equal values will collapse into a single row.

HTH,
Matthieu

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:184592
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