HP Neoview SQL Reference Manual page 496

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

SELECT deptnum, empnum, COUNT(salary)
OVER (PARTITION BY deptnum ORDER BY empnum ROWS 3 PRECEDING)
FROM persnl.employee;
Return the running count of employees within each department:
SELECT deptnum, empnum, COUNT(*)
OVER (PARTITION BY deptnum ORDER BY empnum ROWS UNBOUNDED PRECEDING)
FROM persnl.employee;
496
OLAP Functions

Advertisement

Table of Contents
loading

Table of Contents