Question state...

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

DECLARE @QuestionID INT = ##QuestionID:int##

SELECT
   CASE 
      WHEN AcceptedAnswerId IS NOT NULL THEN 'Accepted'
      WHEN LastEditDate IS NOT NULL THEN 'Edited'
      ELSE 'Asked'
   END
FROM Posts
WHERE Id = @QuestionID

Enter Parameters

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