You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement per group row numbers rather than per result set row numbers #1126
It can be very useful to be able to generate row numbers for each group, which lets you do things like return the first 1 or X rows per group, but the ROW_NUMBER() function in AlaSQL appears to return the row numbers not of the group but of the result set overall.
Activity
mathiasrw commentedon Sep 5, 2019
This would change existing behavour. We might need to make a new name for it - like GROUP_ROW_NUMBER() - how does that sound?
jaengelberg commentedon Sep 5, 2019
That sounds great, thank you!
tppsDev commentedon Sep 9, 2019
Is anyone working on this?
mathiasrw commentedon Sep 11, 2019
Not that I know of. But its a neat feature. Not too hard to implement for a new person :-D
biddwan09 commentedon Oct 13, 2019
Hi @mathiasrw . To implement I only have to make change in 424select.js right ? It would be great if you can give a bit more clarity on this feature
mathiasrw commentedon Oct 14, 2019
@jaengelberg Any chance you could come with an example that could work as the foundation for a test case?
@biddwab09 Yes, I am pretty sure its only 424select.js - but I might be mistaken. Its a good place to start in any case :)
Support ROW_NUMBER() OVER (PARTITION BY) syntax for row numbering to fix