Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Need help in this query

$
0
0

 have table with column id

  id

  1

  0

  0

  2

  0

  3

I would like return

  id      Rank

  1         1

  0          1

  0          1

  2         2

  0         2

  3          3


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>