openedge abl function which replaces max sql function

Posted by HachDev on 30-Mar-2015 05:28

Hi,

is there any ABL function which replaces "max" sql function

ex :

max (table1.id) return the maximum value of the id column in table1 table .

All Replies

Posted by James Palmer on 30-Mar-2015 05:37


Not implicitly, no, but it's not hard to write one.

EG:

FOR EACH table1 BY id DESC:
  RETURN table1.id.
END.

This thread is closed