Get first answers


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for the craft of professional writing, including fiction, non-fiction, technical, scholarly, and commercial writing

select p.Id, p.OwnerUserId, p.CreationDate, p.Score, p.CommentCount, p.Body
from (
  select OwnerUserId, MIN(CreationDate) as firstdate
  from Posts
  where convert(date, CreationDate) <= convert(date, '20180918')
  group by OwnerUserID ) as latest
  inner join Posts as p on p.OwnerUserId = latest.OwnerUserId and p.CreationDate = latest.firstdate
  convert(date, p.CreationDate) <= convert(date, '20180820')
  AND convert(date, p.CreationDate) >= convert(date, '20180820')
  AND p.PostTypeId = 2

Enter Parameters

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