ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » selecting records based on DATE from oracle DB using ESQL

Post new topic  Reply to topic
 selecting records based on DATE from oracle DB using ESQL « View previous topic :: View next topic » 
Author Message
mqs_guy
PostPosted: Wed Jun 02, 2004 12:28 pm    Post subject: selecting records based on DATE from oracle DB using ESQL Reply with quote

Acolyte

Joined: 09 May 2002
Posts: 71

Hi,

I am trying to select a record based on a contents of the XML message.

The XML message is as below:
<Cds-sample>
<CURR_CODE>INR</CURR_CODE>
<CDS_DATE>18-jan-04</CDS_DATE>
</Cds-sample>

I have the following ESQL:

SET OutputRoot.XML."Cds-sample".Currency[] = (SELECT T1.FVR_RATE as Rate, T1.CURR_CODE as Code FROM Database.FIN_VALUE_RATE as T1 where ((T1.CURR_CODE = InputRoot.XML."Cds-sample".CURR_CODE) AND T1.FVR_DATE =InputRoot.XML."Cds-sample".CDS_DATE));

Though there are records in the table...no records get selected if i execute the above ESQL.
Do i need to format the date type? Doesn't Oracle DB uses "DD-MON-YY" as the date format?

As always, any inputs appreciated.
Back to top
View user's profile Send private message
JT
PostPosted: Wed Jun 02, 2004 1:47 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
Doesn't Oracle DB uses "DD-MON-YY" as the date format?

What does your database administrator say?
Back to top
View user's profile Send private message
mqs_guy
PostPosted: Wed Jun 02, 2004 1:54 pm    Post subject: Reply with quote

Acolyte

Joined: 09 May 2002
Posts: 71

JT,

When i select the sysdate from dual it gives me the output in the format "DD-MON-YY".
Wanted to know if there's anything wrong with my ESQL?

Cheers
Back to top
View user's profile Send private message
mqs_guy
PostPosted: Thu Jun 03, 2004 6:16 am    Post subject: Reply with quote

Acolyte

Joined: 09 May 2002
Posts: 71

Guys,

'Am still stuck!!
Looks like, i should format the way i specify the date!!
Your inputs are highly appreciated.

Regards
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » selecting records based on DATE from oracle DB using ESQL
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.