HPE NonStop SQL/MX Error – 3173 UPDATE STATISTICS is not allowed in a compound statement.

In this blog post, let’s learn about the error message “3173 UPDATE STATISTICS is not allowed in a compound statement.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

3173 UPDATE STATISTICS is not allowed in a compound statement.

Reason for the Error

You specified a compound statement that contains an UPDATE STATISTICS command.

Solution

Correct the syntax and resubmit