Focal Point
[SOLVED] LAST COMMAND

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1137020206

April 12, 2011, 03:31 PM
Shubha Manjit
[SOLVED] LAST COMMAND
I have a table 'TASKS' and 'TASKS_AUD' (Audit table that contains all the updates, Deletes done to table TASKS)

I have to compare the ISRESOURCEREQUESTED column of 'TASKS' with the LAST record of ISRESOURCEREQUESTED column of 'TASKS_AUD'

How do I do it?

I have now implemented it as :

REPORTMODIFIED/A3 = IF TASKS.TASKS.ISRESOURCEREQUESTED NE LAST TASKS_AUD.TASKS_AUD.ISRESOURCEREQUESTED THEN 'YES' ELSE 'NO';

But this pulls out multiple records for every task. I just want one distinct record....

please could anybody help me on this..

This message has been edited. Last edited by: Kerry,
April 12, 2011, 04:02 PM
Francis Mariani
SUM instead of PRINT?

And the input file must be in the correct order for the LAST function to work.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
April 13, 2011, 10:16 AM
Shubha Manjit
Thanks Francis. Doing 'SUM' worked


WebFOCUS 7.6
Windows, All Outputs