Does query of queries allow sub queries? I get this error:
Query Of Queries syntax error.
Encountered "USERID NOT IN ( SELECT. Incorrect conditional expression, Expected
one of [like|null|between|in|comparison] condition,
When I tried to run this statement:
(SELECT USERID, HOMEADDR AS ADDRESS FROM QURYUSERS WHERE NOT HOMEADDR IS NULL)
UNION
(SELECT USERID, BUSADDR AS ADDRESS FROM QURYUSERS WHERE USERID NOT IN (
SELECT USERID FROM QRYUSERS WHERE NOT HOMEADDR IS NULL)
AND NOT BUSADDR IS NULL)
This statement runs perfectly fine in SQL Query Analyzer.
I am using CFMX 7 and MS SQL Server 2000. Is something wrong with my
statement? Is there a better to write this statement?
Johnny
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235123
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