Skip to content

DENSE_RANK window function #1478

@laci-aura

Description

@laci-aura

Hi,
I am in need of basic usage of the DENSE_RANK function as described at https://www.sqlitetutorial.net/sqlite-window-functions/sqlite-dense_rank:

INSERT INTO DenseRankDemo(Val)
VALUES('A'),('B'),('C'),('C'),('D'),('D'),('E');
SELECT
	Val,
	DENSE_RANK () OVER ( 
		ORDER BY Val ) 
	ValRank 
FROM
	DenseRankDemo;
A 1
B 2
C 3
C 3
D 4
D 4
E 5

https://sqlite.org/windowfunctions.html
Could you please point me to implementation of something similar to start with? Or could I somehow execute a text SQL query until the feature is incorporated into sqlite_orm?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions