If you have access to SQL Management Studio you could run the following query: select custid,max(origdocamt) from ardoc where doctype = 'CM' group by custid order by custid
↧