Posted: Mon May 09, 2011 12:43 am Post subject: Error in SELECT quesry
Acolyte
Joined: 09 Feb 2011 Posts: 68
Hello,
I have a quesry like this:
DECLARE sql CHARACTER SELECT A.APP_SPECIFIC_CD FROM Database.ESBLYR.OTA_TRNSL_XREF AS A WHERE (A.APP_ID=SELECT B.SRC_ID FROM Database.HTLCONT.SRC_CHAIN_ASOC AS B AND A.OTA_SPECIFIC_CD=SELECT B.CHAIN_ID FROM Database.HTLCONT.SRC_CHAIN_ASOC AS B);
There is some issue in "=" operator and i am not able to deploy.
Can you please help me
Posted: Mon May 09, 2011 1:18 am Post subject: Re: Error in SELECT quesry
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
Vanshul_MB wrote:
Hello,
I have a quesry like this:
DECLARE sql CHARACTER SELECT A.APP_SPECIFIC_CD FROM Database.ESBLYR.OTA_TRNSL_XREF AS A WHERE (A.APP_ID=SELECT B.SRC_ID FROM Database.HTLCONT.SRC_CHAIN_ASOC AS B AND A.OTA_SPECIFIC_CD=SELECT B.CHAIN_ID FROM Database.HTLCONT.SRC_CHAIN_ASOC AS B);
There is some issue in "=" operator and i am not able to deploy.
Can you please help me
Are you sure your query would pass the ANSI test?
Shouldn't it be
Code:
where field IN select ...
Make sure your SQL is well formed, I don't believe the parenthesis are all placed right either... _________________ MQ & Broker admin
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum