Curious Inquisitive Socratic Badge Progress


Please login or register to vote for this query.

(click on this box to dismiss)

Calculates the number of days a user has with questions that have upvotes and there are no downvoted questions and displays progress toward each of the badges

Reverse Engineering Meta

Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation

count(*) as days
from (
  CONVERT(VARCHAR(10), creationDate, 111) as creationDay,
  sum(case when score > 0 then 1 else 0 end) as up,
  sum(case when score < 1 then 1 else 0 end) as down
from Posts
where OwnerUserId = ##userId##
and PostTypeId = 1
group by CONVERT(VARCHAR(10), creationDate, 111) 
) x
where up > 0 and down = 0

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results