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 » "GROUP BY" functionality in Esql.

Post new topic  Reply to topic
 "GROUP BY" functionality in Esql. « View previous topic :: View next topic » 
Author Message
YESRK
PostPosted: Fri Apr 11, 2008 8:40 am    Post subject: "GROUP BY" functionality in Esql. Reply with quote

Newbie

Joined: 11 Apr 2008
Posts: 2

hello,
Kindly excuse if the question is trivial,

we have a functionality that can be easliy acheived using the "group by" clause of SQL in a select stmt.

do we have similar function in ESQL.

Details:
The incoming XML has multiple occurance of a particular group of elements say state,city,dealer,quantity the requirement is to group the elements that have same state,city and dealer to 1 element in output and sum all the qty.
For Ex
Input
st1 ct1 d1 10
st2 ct2 d2 15
st1 ct3 d3 20
st1 ct1 d1 25

Output should be,
st1 ct1 d1 35
st2 ct2 d2 15
st1 ct3 d3 20
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Apr 11, 2008 8:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

No, there is no GROUP BY or ORDER BY on ESQL select.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Mon Apr 14, 2008 8:14 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

passthru


_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
YESRK
PostPosted: Mon Apr 14, 2008 9:12 pm    Post subject: Reply with quote

Newbie

Joined: 11 Apr 2008
Posts: 2

AkankshA wrote:
passthru



I was referring to processing of incoming XML( from a Q as input to the flow) in the post not the data in database.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Mon Apr 14, 2008 11:12 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi YESRK,

Can you please paste your sample input xml structure....and output too preferably.

You might be able to use the SELECT on the message tree, else use a reference too....but we need to look at your XML for that.

Regards.
Back to top
View user's profile Send private message Send e-mail
AkankshA
PostPosted: Tue Apr 15, 2008 12:29 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

YESRK wrote:
AkankshA wrote:
passthru



I was referring to processing of incoming XML( from a Q as input to the flow) in the post not the data in database.


oops... my mistake...

guess my weekend hangover is still there..
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » "GROUP BY" functionality 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.