In this blog post, let’s learn about the error message “4125 The select list of a subquery in a row value constructor must be scalar (degree of one) if the subquery is one of several expressions rather than the only expression in the constructor.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
4125 The select list of a subquery in a row value constructor must be scalar (degree of one) if the subquery is one of several expressions rather than the only expression in the constructor.
Reason for the Error
You specified a subquery, consisting of several expressions, whose select list is not scalar. If the subquery is not the only expression in the constructor, it must be scalar.
Solution
Correct the syntax and resubmit