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 » Problem Creating MbSQLStatement for Update with SubQuery

Post new topic  Reply to topic
 Problem Creating MbSQLStatement for Update with SubQuery « View previous topic :: View next topic » 
Author Message
er_pankajgupta84
PostPosted: Thu Apr 02, 2009 3:59 am    Post subject: Problem Creating MbSQLStatement for Update with SubQuery Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

Hi I need to run the following query using Java and MbSQLStatement.

I am able to run it on the database.

UPDATE mdeai.EAI_NOTIF_ROUTE SET EAI_NOTIF_TS = '2009-04-02-06.42.51.969'
WHERE SERVICE_ID = (select service_id from EAI_SERVICE where service_name = 'AR_BILLING_I0015' ) and
COUNTRY_CODE = 'GB' and ERR_SEVERITY_CODE =
(select ERR_SEVERITY_CODE from ERROR_SEVERITY where ERR_SEVERITY_DESC ='Critical') and REQUEST_TYPE_CODE ='WW_EXCEPTION_PAYLOAD_REPLAY_FLOW' and Notif_TYPE_ID =

(select Notif_Type_ID from EAI_NOTIF_TYPE where notif_type_NAME ='EMAIL')

I tried various format for creating a query string but none of them is working.

Any help pointers would be useful.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
er_pankajgupta84
PostPosted: Thu Apr 02, 2009 10:50 am    Post subject: Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

Any pointer would be appreciated
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Vitor
PostPosted: Thu Apr 02, 2009 11:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

er_pankajgupta84 wrote:
Any pointer would be appreciated


And when someone has something to add, I'm sure they'll add it.

We don't have an SLA on replies. If it's an urgent issue raise a PMR.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
er_pankajgupta84
PostPosted: Thu Apr 02, 2009 4:03 pm    Post subject: Reply with quote

Master

Joined: 14 Nov 2008
Posts: 203
Location: charlotte,NC, USA

I solved the problem

here is the query..

UPDATE Database.MDEAI.EAI_NOTIF_ROUTE AS T SET EAI_NOTIF_TS = '2009-05-05-06.42.51.969' WHERE T.REQUEST_TYPE_CODE ='WW_EXCEPTION_PAYLOAD_REPLAY_FLOW' and T.COUNTRY_CODE = 'GB' and T.SERVICE_ID = THE(select ITEM A.service_id from Database.MDEAI.EAI_SERVICE AS A where A.service_name = 'AR_BILLING_I0015' ) and T.ERR_SEVERITY_CODE = THE(select ITEM B.ERR_SEVERITY_CODE from Database.MDEAI.ERROR_SEVERITY AS B where B.ERR_SEVERITY_DESC ='Critical') and T.Notif_TYPE_ID =THE(select ITEM C.Notif_Type_ID from Database.MDEAI.EAI_NOTIF_TYPE AS C where C.notif_type_NAME ='EMAIL')
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
Vitor
PostPosted: Thu Apr 02, 2009 10:46 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

er_pankajgupta84 wrote:
I solved the problem


And thank you for posting the soloution for the benefit of others!


_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Problem Creating MbSQLStatement for Update with SubQuery
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.