X185: FOR UPDATE OF not allowed with GROUP BY or ORDER BY clause.

The FOR UPDATE OF clause cannot be used on a query that is not updateable. GROUP BY and ORDER BY queries are not updateable.
Restriction: This topic applies to Windows environments only.