hi friends, i want to update a table using maxof() function,
if possible in ax means, just give one example.
thanx
hi friends, i want to update a table using maxof() function,
if possible in ax means, just give one example.
thanx
No it will result in an update conflict(if used on RecId) or you will not have the record to update.
Rather you can use the order by clause in your update statement…
how to use order by clause in update stmnt???
select forupdate custTable order by CreditMax desc;
its not working,
ttsbegin;
while select forupdate tempcol order by tempcol.Rno1 desc
{
tempcol.Name2=“ttt”;
tempcol.Rno2=222;
}
ttscommit;
while select forupdate tempcol order by Rno1 desc
{
tempcol.Name2=“ttt”;
tempcol.Rno2=222;
tempcol.update();
}