You can also use inequality operators in a join as well. I found a very good use for this when I was creating an IP Telephony billing app for our campus.
Table1 INNER JOIN Table2 ON (Table1.pk = Table2.fk AND Table1.date <= Table2.billingDate) (This is kind of a nonsense query, but you get the gist...) M!ke -----Original Message----- From: Steve Bryant [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 3:07 PM To: CF-Talk Subject: Re: SQL Join Challenge That's it! I didn't even realize that you could use an AND in a join clause like that (embarrased that I didn't even think to try it). Sorry to everyone if my explanation of the desired result was confusing. Thanks to all for the help! Steve ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198724 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