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 IndexWebSphere Message Broker SupportESQL Select DISTINCT

Post new topicReply to topic Goto page Previous  1, 2
ESQL Select DISTINCT View previous topic :: View next topic
Author Message
bruce2359
PostPosted: Wed Jan 22, 2020 6:57 pm Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8708
Location: US: west coast, almost. Otherwise, enroute.

Wait patiently.
_________________
My life flows on in endless song;
How can I keep from singing?
Back to top
View user's profile Send private message
arunkumo
PostPosted: Mon Jan 27, 2020 2:04 pm Post subject: Re: Solution for getting Distinct Reply with quote

Novice

Joined: 21 Sep 2014
Posts: 20

Aldrine wrote:
Hi,

Code:
DECLARE tempGroup ROW;
DECLARE index INTEGER 1;
set tempGroup.Field[1] = InputRoot.XMLNS.Body.Field[1];

FOR loopField As InputRoot.XMLNS.Body.Field[*]
IF NOT EXISTS SELECT Field FROM temprow.Field[] WHERE tempGroup.Field = loopField
set tempGroup.field[index++] = loopField
END IF
END FOR 

This way we can get only the unique values.


Hi aldine,

can you help me with working code, I have tried this but it is throwing some errors.
Description Resource Path Location Type
Syntax error. Valid options include: ] = > < - ( + .NET CASE CAST COUNT CURRENT_DATE CURRENT_GMTDATE CURRENT_GMTTIME CURRENT_GMTTIMESTAMP CURRENT_TIME CURRENT_TIMESTAMP DATE DECIMAL EVAL EXISTS EXTRACT FALSE FOR GMTTIME GMTTIMESTAMP IDENTIFIER INTERVAL LAST LIST LOCAL_TIMEZONE LOG MAX MIN NOT NULL OVERLAY PARSE PASSTHRU POSITION RAND ROUND ROW SELECT SIMPLE_FUNCTION SUBSTRING SUM THE TIME TIMESTAMP TRIM TRUE UNKNOWN URLENCODE UUIDASBLOB UUIDASCHAR CorrespondenceNotification_ProcessFile.esql /CorrespondenceNotification line 24 ESQL Parser
Back to top
View user's profile Send private message
timber
PostPosted: Mon Jan 27, 2020 4:16 pm Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1116

This code is inefficient and probably not what you need (even if the person you are trying to address still exists on this forum after 9 years).

Please stop posting on this thread, and spend your time on the other thread explaining your problem properly.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum IndexWebSphere Message Broker SupportESQL Select DISTINCT
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.