Test Query

0

Please login or register to vote for this query.

(click on this box to dismiss)

German Language Meta

Q&A about the site for speakers of German wanting to discuss the finer points of the language and translation

SELECT *
FROM (SELECT ROW_NUMBER() OVER(ORDER BY Id) AS RowNum, *
      FROM (
SELECT p.Id, p.OwnerUserId, p.PostTypeId, p.AcceptedAnswerId, p.ParentId, 
p.DeletionDate, p.Score, p.ViewCount, p.Body, p.AnswerCount, p.CommentCount, p.ClosedDate, 
ph.PostHistoryTypeId,
u.Reputation,u.DisplayName,u.LastAccessDate,u.Location,u.AboutMe,
u.Views,u.UpVotes,u.DownVotes,u.AccountID
FROM posts p
JOIN users u
ON p.OwnerUserId = u.Id
JOIN PostHistory ph
ON p.Id = ph.PostId
WHERE u.CreationDate >= '2016-01-01' and (PostTypeId = 1 or PostTypeId = 2)
) as a 
) as aa
WHERE RowNum BETWEEN 0 AND 50000

Enter Parameters

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