HP NonStop SQL/MX Messages Manual page 214

Table of Contents

Advertisement

Binder and Compilation Messages (4000 through
4999)
Recovery. Correct the syntax and resubmit. For example:
>>select a from T1 where runningcount(b) > 10 sequence by a;
*** ERROR[4109] Sequence functions placed incorrectly:
RUNNINGCOUNT(CAT.SCH.HPPARTEST1.B).
*** ERROR[8822] Unable to prepare the statement.
SQL 4110
4110 The query contains sequence functions but no SEQUENCE BY
clause: name.
Cause. You specified a query that contains a sequence function name but no
SEQUENCE BY clause, which is not supported. The value of the sequence function
depends on the specific sequence (order) of the rows. If no sequence is defined, the
result of the sequence function is dependent on an arbitrary ordering of the rows,
which could lead to unexpected results.
Effect. The operation fails.
Recovery. Correct the syntax and resubmit. For example:
>>select runningsum(a) from t1;
*** ERROR[4110] The query contains sequence functions but no
SEQUENCE BY clause: RUNNINGSUM(CAT.SCH.T1.A).
To correct the query, add a SEQUENCE BY clause:
>>select runningsum(a) from t1 sequence by b;
SQL 4111
4111
The query contains a SEQUENCE BY clause but no sequence
functions.
Cause. You specified a query that contained a SEQUENCE BY clause but no
sequence functions, which is not supported. The purpose of the SEQUENCE BY
clause is to specify an ordering for computing one or more sequence functions.
Without sequence functions, the SEQUENCE BY clause has no effect.
Effect. The operation fails.
Recovery. Correct the syntax by adding a sequence function to the query or by using
an ORDER BY (if you intend to order the result set.) For example:
>>select a from T1 sequence by a;
*** ERROR[4111] The query contains a SEQUENCE BY clause but no
sequence functions.
*** ERROR[8822] Unable to prepare the statement.
HP NonStop SQL/MX Messages Manual—640324-001
6- 28

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nonstop sql/mx 3.0

Table of Contents