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 » Mapper with *distinct* in SQL query ?

Post new topic  Reply to topic
 Mapper with *distinct* in SQL query ? « View previous topic :: View next topic » 
Author Message
shashivarungupta
PostPosted: Wed Dec 17, 2014 2:28 pm    Post subject: Mapper with *distinct* in SQL query ? Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

Hi,

I wonder, when mapping is used to fetch the data from database table(s) along with where clause, it doesn't have a feature to use 'distinct' keyword there in the SQL query section ?

Need to understand if WMB (v8.0.0.4) Mapping can provide any feature to get the distinct value(s) from database table(s).

Matter of fact, I've checked the fixpacks for 8.0.0.4 and this link where it doesn't give the hint of something is being fixed (in the past) related to SQL 'distinct' keyword, that denotes WMB Mapper can use it ? Or there is different understanding ?

Appreciate your suggestions.

_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
martinb
PostPosted: Fri Dec 19, 2014 9:02 am    Post subject: Reply with quote

Master

Joined: 09 Nov 2006
Posts: 210
Location: UK

The Graphical Data Mapper Database Transforms currently allow you to define the columns, table and WHERE clause.

The SQL DISTINCT statement is not part of the Where clause.

If you need full control over the SQL statements your options are

- wrap it in a Stored procedure, but note only IIB v9 supports calling these from a Graphical Map, and support is currently only with DB2
- use a compute node

If you feel this should be available in a Graphical Map you could post a RFE
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Sun Dec 21, 2014 1:26 pm    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

martinb wrote:
The Graphical Data Mapper Database Transforms currently allow you to define the columns, table and WHERE clause.

The SQL DISTINCT statement is not part of the Where clause.

If you need full control over the SQL statements your options are

- wrap it in a Stored procedure, but note only IIB v9 supports calling these from a Graphical Map, and support is currently only with DB2
- use a compute node

If you feel this should be available in a Graphical Map you could post a RFE


Thanks for that, I've posted the comment there.


_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapper with *distinct* in SQL 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.