Dear Friends, please help with sqlite query, i  have a table like:

score| rank |  game
98    |  1     |    1615
98    |  1     |    1615
92    |  2     |    1615
87    |  3     |    1615
87    |  3     |    1615
87    |  3     |    1615
112  |  1      |    1616
94    |  2     |    1616
94    | 2      |    1616

I want to have a query to produce :

score | rank  |  subrank  |   game
98     |   1     |       1       |  1615
98     |    1    |       2       |  1615
92     |    2    |       1       |  1615
87     |   3     |       1       |  1615
87     |   3     |       2       |  1615
87     |   3     |       3       |  1615
112   |   1     |        1      |  1616
94    |   2     |         1     |   1616
94    |   2      |        2     |   1616

Thank's in advance for your help.
Ricky
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to