SOQL max function not working for Salesforce stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
nandika.kodituwakku
Premium Member
Premium Member
Posts: 5
Joined: Tue Sep 13, 2016 5:19 pm
Location: Australia

SOQL max function not working for Salesforce stage

Post by nandika.kodituwakku »

Below SOQL returning null value from Salesforce stage, but if I run the same SOQL in Salesforce Developer console I'm getting the value.

Select max(LastModifiedDate) From POI__c p

Does that DataStage Salesforce stage connector support SOQL like above?

Appreciated your help on this.
npk
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It should do. Assuming that p is an alias for the table name, you may need to qualify the column name with that alias.

Code: Select all

Select max(p.LastModifiedDate) From POI__c p
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply