How many answers did I submit on different days?

1

Please login or register to vote for this query.

(click on this box to dismiss)

The Great Outdoors

Q&A for people who love being outdoors enjoying nature and wilderness, and learning about the required skills and equipment

-- How many answers did I submit on different days?

DECLARE @UserId int = ##UserId##

SELECT
CONVERT(DATE, MIN(CreationDate), 120) AS Ans_Date,
COUNT(*) AS Answers
FROM Posts
WHERE Posts.PostTypeId = 2 AND Posts.OwnerUserId = @UserId
GROUP BY CAST(Posts.CreationDate AS DATE)

Enter Parameters

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