SQL/MX 2.x Messages Manual (G06.24+, H06.03+)

Binder and Compilation Messages (4000 through
4999)
HP NonStop SQL/MX Messages Manual523730-004
6-3
SQL 4005
Cause. You referenced column name, which is not a grouping column or is not
specified within an aggregate, which is not supported.
Effect. The operation fails.
Recovery. Correct the column reference and resubmit.
SQL 4006
Cause. You referred to columns that do not come from the same scope.
Effect. The operation fails.
Recovery. Correct the column references and resubmit.
SQL 4007
Cause. You specified an index value1 that is out of the range of between 1 and the
value2 of SELECT expressions.
Effect. The operation fails.
Recovery. Correct the index and resubmit.
SQL 4008
Cause. You specified a subquery within an aggregate function, which is not supported.
Effect. The operation fails.
Recovery. Correct the syntax and resubmit.
4005 Column reference name must be a grouping column or be
specified within an aggregate.
4006 Within an aggregate, all column references must come
from the same scope.
4007 The select list index value1 is out of range. It must
be between 1 and the number of select expressions, which in
this case is value2.
4008 A subquery is not allowed inside an aggregate function.