AndrewMozley
Programmer
There is a table, XARCN.dbf with a field FOLIO, of the form XX9999.
I would like to extract the value of the largest ‘folio’ beginning ‘AB’ into a variable. Believe that I can extract it into a cursor with something like :
SELECT MAX(VAL(SUBSTR(FOLIO,3))) FROM XARCN WHERE LEFT(Folio,2) = "AB"
Is there a way of putting this value directly into a variable, without making use of a cursor?
Thank you.
I would like to extract the value of the largest ‘folio’ beginning ‘AB’ into a variable. Believe that I can extract it into a cursor with something like :
SELECT MAX(VAL(SUBSTR(FOLIO,3))) FROM XARCN WHERE LEFT(Folio,2) = "AB"
Is there a way of putting this value directly into a variable, without making use of a cursor?
Thank you.