HPE NonStop SQL/MX Error – 3139 A range partitioned index requires a FIRST KEY clause.

In this blog post, let’s learn about the error message “3139 A range partitioned index requires a FIRST KEY clause.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

3139 A range partitioned index requires a FIRST KEY clause.

Reason for the Error

You attempted to create a range-partitioned index without a required FIRST KEY clause.

Solution

Correct the syntax and resubmit