I have a below query :
select id, firstname,LastName,Company, dense_rank() over (partition by company order by id )
from UserAdditionalData
where Company is not null
Here is the result that I am getting: http://prntscr.com/a9d454. Dense_Rank function is not working,please help me in this.