First questions

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 firstasked, Count(*) as num
FROM (
  SELECT MIN(Convert(date, CreationDate)) as firstasked
  FROM posts as questions
  where questions.PostTypeId = 1
  GROUP BY OwnerUserId) as firstquestions
GROUP BY firstasked
ORDER BY firstasked;

SELECT CONVERT(date, CreationDate) AS Da, Count(*)
FROM Posts
WHERE PostTypeID = 1
GROUP BY CONVERT(date, CreationDate)
ORDER BY Da DESC;

Enter Parameters

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