Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Enterprise Integration Forum

Enterprise Integration Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Pete Rawlings 31.Jul.15 06:40 AM a Web browser
LEI All Releases All Platforms


I have a database I want to replicate distinct records with. Why not use direct transfer I hear you ask. Well because of how much data it changes. So my dream is to use this example query in the replication environment

SELECT DISTINCT XXX.TABLE1.IMT, XXX.TABLE1.IMOD, XXX.TABLE2.PMAKENAM,
XXX.TABLE2.PMAKEDES, XXX.TABLE2.PMAKEFEA, XXX.TABLE2.PDEVCAT
FROM XXX.ORBTIPRO, XXX.ORBTOEM
WHERE XXX.TABLE1.IPCN = XXX.TABLE2.PCN
AND SUBSTR(XXX.TABLE1.IMT, 1, 1) BETWEEN '0' AND '9'
AND SUBSTR(XXX.TABLE1.IMT, 2, 1) BETWEEN '0' AND '9'
AND SUBSTR(XXX.TABLE1.IMT, 3, 1) BETWEEN '0' AND '9'
AND SUBSTR(XXX.TABLE1.IMT, 4, 1) BETWEEN '0' AND '9'
AND XXX.TABLE1.IMT <> ' ' AND XXX.TABLE1.IMOD <> ' '
AND XXX.TABLE2.PMAKENAM NOT LIKE ' FRED%'
AND XXX.TABLE1.IPRODST IN ('S', 'T', 'G')
ORDER BY XXX.TABLE1.IMT ASC, XXX.TABLE1.IMOD ASC

So the challenge first is the Join , got around this using a Dependant Activity to go get the additional data based on the key.

The issues I now have is the DISTINCT and the NOT LIKE (as I dont have the joined data to use for Conditional clause as Query now split).

I do have this code working in a Direct Transfer so if worse come to worse I could continue or maybe the best thing to do is get the DB2 folks to provide me a view.

Any thoughts ?






Replication with DB2 and DISTINCT (Pete Rawlings 31.Jul.15)
. . RE: Replication with DB2 and DISTIN... (Daniel W Heiche... 13.Nov.15)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite