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 » LEFT JOIN in ESQL

Post new topic  Reply to topic
 LEFT JOIN in ESQL « View previous topic :: View next topic » 
Author Message
nu1
PostPosted: Wed Jan 28, 2004 3:14 pm    Post subject: LEFT JOIN in ESQL Reply with quote

Apprentice

Joined: 28 Nov 2003
Posts: 26

Hi
How can I implement LEFT JOIN in ESQL

FOr example if the SQL is

SELECT A.field1, A.field2, B.field3, B.field4, C.field5 FROM Table2 B, Table1 A LEFT JOIN Table3 C ON A.field1 = C.field5 WHERE A.field1=B.field3 AND A.field1=123;

If I execute this ESQL code the query fails for certian values

SELECT T.field1,T.field2,S.field3,S.field4,R.field5 FROM Database.Table2 AS B, Database.Table1 AS A, Database.Table3 AS C WHERE
T.field1=T.field3 AND T.field1=123 AND T.field1=R.field5

Can sombody let me know a smart way to deal this JOIN statement in ESQL.

Thanks
_________________
-nu1
Back to top
View user's profile Send private message
CoolDude
PostPosted: Wed Jan 28, 2004 3:38 pm    Post subject: Reply with quote

Apprentice

Joined: 17 Jan 2004
Posts: 39

not all database operations can be implemented using ESQL. check the ESQL reference manual if JOIN operations are supported.

you can use the PASSTHRU statement to achieve the same using PASSTHRU.
_________________
Correct Me from Wrong . If i am correct Appreciate Me
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Jan 28, 2004 8:28 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Please check this thread,
http://www.mqseries.net/phpBB2/viewtopic.php?t=11769&highlight=join
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
mgk
PostPosted: Thu Jan 29, 2004 2:27 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hi, we only support inner joins in esql. As suggested, you can use passthru to execute a left join

Cheers,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
nu1
PostPosted: Thu Jan 29, 2004 7:32 am    Post subject: Reply with quote

Apprentice

Joined: 28 Nov 2003
Posts: 26

thanks for your response..
I used passthru and I am able to implement leftjoin in ESQL.

thank you
_________________
-nu1
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 » LEFT JOIN in 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.