Cutter wrote: >The following query is not allowed using my hosts version of MySQL: > ><cfquery name="GetCustomer" datasource="#Request.DS#" >username="#Request.user#" password="#Request.pass#"> >SELECT Customer_ID FROM customers >WHERE Customer_ID = (SELECT Customer_ID FROM order_no > WHERE Order_No = #Order_No#) >AND Customer_ID NOT IN (SELECT Customer_ID FROM users) >AND Customer_ID NOT IN (SELECT Customer_ID FROM order_no > WHERE Order_No <> #Order_No#) >AND Customer_ID NOT IN (SELECT Customer_ID FROM account) >AND User_ID = 0 ></cfquery> > >Any ideas how to rewrite this? > >Cutter > > > Try Query of Query - or ask your host to upgrade to version 4.x of MySQL. Or... try a PostgreSQL database.
-Jordan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:199883 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

