Unenlightened answers


Please login or register to vote for this query.

(click on this box to dismiss)

Answers which would be enlightened with one more upvote.

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

-- Unenlightened answers
-- How close am I to Enlightened?

DECLARE @UserId int = ##UserId##

select top 200 a.id "Post Link", a.creationdate, u.id "User Link", a.score
from posts a
inner join posts q on (a.parentid = q.id)
inner join users u on (a.owneruserid = u.id)
where a.posttypeid = 2
and a.id = q.acceptedanswerid
--and a.communityowneddate is null
and a.owneruserid != q.owneruserid
and a.creationdate <= (select min(creationdate) from posts where parentid = a.parentid)
and q.OwnerUserId = @UserId
order by a.score desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results