select issuedeltas_createdate, problem_link,
row_number over
( partition by issuedeltas_createdata, problem_link order by problem_link)
as newcol from ph_new
/
ERROR at line 3:
ORA-00923: FROM keyword not found where expected
First, this will only work under 8i (8.1.6.2 or later, to be exact)
Second, it will not work in PL/SQL directly - you will have to use Dynamic SQL withing PL/SQL.
Third, you missed the () after the call to the ROW_NUMBER () function.
Fourth, the ORDER BY cannot be on the same column as a PARTITION BY. The question is: Within each partition (where the first 2 columns are the same), how do you want to order the rows? If you don't care, then omit the ORDER BY clause entirely.
Bookmarks