But what's wrong with it? Is it the sub selects?

Ade

-----Original Message-----
From: Jordan Michaels [mailto:[EMAIL PROTECTED]
Sent: 24 March 2005 15:26
To: CF-Talk
Subject: Re: MySQL question

Try Query of Query - or ask your host to upgrade to version 4.x of 
MySQL. Or... try a PostgreSQL database.

-Jordan


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
>
>  
>
-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.8.1 - Release Date: 23/03/2005


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199887
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

Reply via email to