I have user table like this .also following 2 fields are fixed . userId is primary key.
userId    name
898        abc
900        xyz
902        rrr
904        wer
if i fetch particular userid then result should display as row number.
for example userid 902 then result should display 3.
how to write SQL query?
 
     
     
    