sql - Running Count in sqlite -


i have table in sqlite:

student |class |grade       |    | 17       |  b   | 15       |  c   | 12 b       |  b   | 14 b       |  c   | 12 b       |    | 10 

and want select top 2 grades in each class, each student, this:

student |class |grade       |    | 17       |  b   | 15 b       |  b   | 14 b       |  c   | 12 

is there simple way this?

thanks!


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -