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 » DatabaseRetrieve Node - Complex query

Post new topic  Reply to topic
 DatabaseRetrieve Node - Complex query « View previous topic :: View next topic » 
Author Message
ashritha
PostPosted: Tue Nov 16, 2010 9:56 pm    Post subject: DatabaseRetrieve Node - Complex query Reply with quote

Voyager

Joined: 25 Jul 2005
Posts: 85

Hi,

I am trying to use the DatabaseRetrieve node for the first time and am having trouble adding query elements into the node properties. I have a bit of a complex query(not too much actually) with joins. I am not able to add these joins. Can anyone please help me how i can add the query elements as per the sql statement below

select a.*, b.language_key, b.MODEL_DESCRIPTION, c.PH_SHORT_DESC, d.PH_SHORT_DESC, e.PH_SHORT_DESC
from etl_stg.bw_material a
join etl_stg.bw_material_desc b
on a.material = b.material
left join etl_stg.bw_product_hier_desc c
on a.PRODUCT_HIERARCHY_1 = c.PRODUCT_HIERARCHY
and b.language_key = c.language_key
left join etl_stg.bw_product_hier_desc d
on a.PRODUCT_HIERARCHY_2 = d.PRODUCT_HIERARCHY
and b.language_key = d.language_key
left join etl_stg.bw_product_hier_desc e
on a.PRODUCT_HIERARCHY_3 = e.PRODUCT_HIERARCHY
and b.language_key = e.language_key
where b.language_key = 'E' and a.etl_upd_ts =TO_TIMESTAMP('10/12/2010 8:18:56.000 PM','fmMMfm/fmDDfm/YYYY fmHH12fm:MI:SS.FF AM')


I have tried looking into the infocenters and forums but could not find any documentation around this.

Any help is greatly appreciated.

Thanks,
Ayesha
Back to top
View user's profile Send private message
harish_td
PostPosted: Sun Nov 21, 2010 7:54 am    Post subject: Reply with quote

Master

Joined: 13 Feb 2006
Posts: 236

I believe this can be easily achieved using PASSTHRU in a Compute Node. Why would this have to be done using the DatabaseRetrieve node?
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DatabaseRetrieve Node - Complex query
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.