Skip to content
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

Support OVER () clause with current aggregate functions [CORE2090] #2524

Closed
firebird-automations opened this issue Sep 21, 2008 · 3 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @asfernandes

Jira_subtask_inward CORE1688
Is related to QA634

Because CORE1688 "ANSI SQL2003 Window Functions" is not a small feature, I'll create subtasks for it when implementing pieces.

This one needs much more tests and work, but it's started with good results. :-)

SQL> select * from t;

      N1           N2 

============ ============
1 11
2 22
5 55

SQL> select
CON> n1,
CON> n2,
CON> count(*) over (),
CON> min(n1) over (),
CON> max(n1) over(),
CON> min(n2) over (),
CON> max(n2) over (),
CON> list(n1) over (),
CON> list(n2) over ()
CON> from t;

      N1           N2        COUNT          MIN          MAX          MIN          MAX              LIST              LIST 

============ ============ ============ ============ ============ ============ ============ ================= =================
1 11 3 1 5 11 55 0:22 0:21

LIST:
1,2,5

==============================================================================
LIST:
11,22,55

       2           22            3            1            5           11           55              0:22              0:21 

==============================================================================
LIST:
1,2,5

==============================================================================
LIST:
11,22,55

       5           55            3            1            5           11           55              0:22              0:21 

==============================================================================
LIST:
1,2,5

==============================================================================
LIST:
11,22,55

Commits: d88b5cf 0145996 ed0e0da FirebirdSQL/fbt-repository@d94f3c2

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA634 [ QA634 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants