DECLARE @minscroe int = ##minscore##; with gposts as( se...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Software Quality Assurance and Testing Meta

Q&A about the site for software quality control experts, automation engineers, and software testers

DECLARE @minscroe int = ##minscore##;
--DECLARE @UserId int = ##UserId##

with gposts as( select postid, creationdate
from (
   select postid, creationdate,
          row_number() over (partition by postid order by creationdate) as rnk
   from votes
   where votetypeid=2
) t
where rnk = @minscroe)
select * from gposts

Enter Parameters

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