select p.OwnerUserId, p.Id, p.ViewCount, RANK() OVER (par...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Language Learning

Q&A for students, teachers, polyglots, and anyone interested in the techniques of second-language acquisition

select
  p.OwnerUserId,
  p.Id,
  p.ViewCount,
  RANK() OVER (partition by p.OwnerUserId order by p.ViewCount desc, p.Id) as rank
from
  Posts p
where
  p.PostTypeId = 1
  and p.OwnerUserId is not null

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results