SELECT Id as [Post Link], OwnerUserId, (SELECT COUNT(*) F...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT
  Id as [Post Link],
  OwnerUserId,
  (SELECT COUNT(*) FROM Posts AS P2
    WHERE P2.OwnerUserId = Posts.OwnerUserId
    AND P2.CreationDate < Posts.CreationDate
  ) AS 'Previous Posts',
  Score,
  Tags
FROM
  Posts
WHERE
  PostTypeId = 1

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results