HP Neoview Messages Manual page 147

Table of Contents

Advertisement

SQL 4108
4108 Inside a ROWS SINCE, another sequence function contained an invalid
reference to the THIS function.
Cause
A ROWS SINCE function in your statement contained another sequence function that,
in turn, contained an invalid reference to the THIS function. Inside ROWS SINCE, the THIS
function must not appear inside any other sequence function.
Effect
The operation fails.
Recovery
Reword the query so that the expression inside the other sequence function does
not contain references to the THIS function.
SQL 4109
4109 Sequence functions are placed incorrectly: name.
Cause
You specified a query that includes a SEQUENCE BY clause that contains an illegally
placed sequence function name. Sequence functions (such as RUNNINGSUM, MOVINGSUM,
LASTNOTNULL) are supported only in the select list or the HAVING clause of the query
expression containing the SEQUENCE BY clause. For example, these queries are legal:
>>select a, runningcount(b) from T1 sequence by a;
>>select x from (select a, runningcount(b)from T1 sequence by a)
T2(x,y) where y > 10;
>>select count(*) from t1 sequence by b group by a having
runningsum(a) > count(*);
Effect
The operation fails.
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 41 10
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;
147

Advertisement

Table of Contents
loading

Table of Contents