1. This is not SQL, it is ABL You can submit this code via a Progress editor, but not via a SQL tool.
2. Please get in the habit of *always* qualifying column names, i.e., "Orders.invdate", not just "invdate".
3. UPDATE is a user interaction verb; what you want here is ASSIGN.
Other than that and not knowing anything about indexes and efficiency, seems fine. At least, as long as you don't mind making mass updates on historical data with no audit trail.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.