Whoa.... Nice... Never thought of that. I would have done where x in (blah) and y in (blah)... As usual Jochem you are the SQL king.
-----Original Message----- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Sunday, May 14, 2006 7:54 AM To: CF-Talk Subject: Re: Okay, here's *another* error message I've never seen... Rick Root wrote: > Bryan Stevenson wrote: >> sub-queries can only return one record....thus the error > > Actually Bryan, that's not true. Sub-queries can only return one column. They can return more then one column too: SELECT * FROM table WHERE (x, y) IN (SELECT a, b FROM otherTable) Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240531 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