[ 
https://issues.apache.org/jira/browse/DERBY-2998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Nielsen updated DERBY-2998:
----------------------------------

    Attachment: row_number_prototype-2b.stat
                row_number_prototype-2b.diff

Updated the patch to distinguish differnet row_number() instances based on 
which ResultSet they are in.

ij> select row_number(), r, b from (select row_number() as r, t.* from t) as tr 
where r >= 2;
row_number()        |R                   |B          
-----------------------------------------------------
1                   |2                   |8          
2                   |3                   |7          

2 rows selected

Patch still not intended for commit.

> Add support for ROW_NUMBER() window function
> --------------------------------------------
>
>                 Key: DERBY-2998
>                 URL: https://issues.apache.org/jira/browse/DERBY-2998
>             Project: Derby
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Thomas Nielsen
>            Assignee: Thomas Nielsen
>            Priority: Minor
>         Attachments: row_number_prototype-2b.diff, 
> row_number_prototype-2b.stat
>
>
> As part of implementing the overall OLAP Operations features of SQL 
> (DERBY-581), implement the ROW_NUMBER() window function.
> More information about this feature is available at 
> http://wiki.apache.org/db-derby/OLAPRowNumber

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to