Quantas respostas (e pontuação delas) eu tenho?

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers

Q&A for Drupal developers and administrators

DECLARE @UserId int = ##UserId##

SELECT
  OwnerUserId as [User Link],
  COUNT(*) as PostCount,
  SUM(Score) as TotalScore
FROM
  Posts
WHERE
  PostTypeId = 2 AND
  OwnerUserId = @UserId
GROUP BY OwnerUserId

Enter Parameters

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