New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window Function: nth_value(value any, nth integer) [from first | from last] [CORE3621] #3974
Comments
Modified by: Sean Leyne (seanleyne)assignee: Adriano dos Santos Fernandes [ asfernandes ] |
Modified by: @asfernandesstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 3.0 Alpha 1 [ 10331 ] |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @asfernandessummary: Window Function: nth_value(value any, nth integer) => Window Function: nth_value(value any, nth integer) [from first | from last] |
Commented by: @livius2 Hi, this ticket have resolution "Fixed" that mean that NTH_VALUE work? CREATE TABLE TEST CREATE INDEX IDX_TEST1 ON TEST (NAME); INSERT INTO TEST (NAME, D, VAL, POINTS) VALUES ('KARLOS', '01.11.2014', '700', '8900'); SELECT
FROM ORDER BY http://T.NAME, T.D ASC result NAME VAL D FIRST WFIRST WNFIRST SECOND WNSECOND THIRD WNTHIRD FOURTH WNFOURTH FIFTH WNFIFTH as you can see WNSECOND for first row is wrong NULL This is most wanted functionality |
Commented by: @asfernandes Did you read this section of the documentation? It's important to note that FIRST_VALUE, LAST_VALUE and NTH_VALUE also operates on a window frame, |
Commented by: @livius2 Reallt? no. i follow your subtasks and when i see that somethink is done "fixed" i test this. ps. thanks for great work :) |
Commented by: @asfernandes What is not done and why it's not done? Because it don't work as you wish does not mean so. Did you tested another RDBMS? It should behave like Firebird. I really don't tested your comments, I'm just guessing you're talking about the "framing thing" as asked you to confirm. The main task already has a subticket for frame: CORE3647. It will not be implemented in this version. |
Commented by: @livius2 Now i see - we can get only previous row from already fetched resultset When do you think think can this be supported Q2 2015 ? :) Or this can take much more time? |
Submitted by: Sean Leyne (seanleyne)
Jira_subtask_inward CORE1688
Commits: d88b5cf 51565be cea1efd FirebirdSQL/fbt-repository@d94f3c2 FirebirdSQL/fbt-repository@6319e20
The text was updated successfully, but these errors were encountered: