HP Neoview SQL Reference Manual page 446

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

--- 8 row(s) selected.
Notice that the two NULL values received the same rank.
Return the rank of I2 descending, using the alternative RANK syntax:
SELECT I2, RANK (I2) AS RANK
FROM cat.sch.seqfcn
SEQUENCE BY I2 DESC;
I2
-----------
--- 8 row(s) selected.
Return the rank of I2 descending, excluding NULL values:
SELECT I2, RANK (I2) AS RANK
FROM cat.sch.seqfcn
WHERE I2 IS NOT NULL
SEQUENCE BY I2 DESC;
I2
-----------
--- 6 row(s) selected.
446
SQL Functions and Expressions
RANK
--------------------
?
?
300
200
200
200
100
100
RANK
--------------------
300
200
200
200
100
100
1
1
3
4
4
4
7
7
1
2
2
2
5
5

Advertisement

Table of Contents
loading

Table of Contents