I can't get the following query to work:
SELECT DIV_NO,ITM_NO, RANK() OVER (ORDER BY ITM_LAST_SH_DT) AS R1
FROM NOKDE.OKIITIO
WHERE ITM_NO= '15310'
It gives me a "Function Rank was not found" error. I thought Rank was an ANSI standard function. There's always the chance our system was modified somehow, because DB2 is the engine for our warehouse system, but any insights are welcome.
Thanks,
Paul
SELECT DIV_NO,ITM_NO, RANK() OVER (ORDER BY ITM_LAST_SH_DT) AS R1
FROM NOKDE.OKIITIO
WHERE ITM_NO= '15310'
It gives me a "Function Rank was not found" error. I thought Rank was an ANSI standard function. There's always the chance our system was modified somehow, because DB2 is the engine for our warehouse system, but any insights are welcome.
Thanks,
Paul