Markdown for a specific post

1

Please login or register to vote for this query.

(click on this box to dismiss)

Constructed Languages

Q&A for designers and users of artificial or invented languages, consciously developed instead of having developed naturally

;with lastrev_cte AS
(
SELECT MAX(ph.Id) AS MaxId, p.Id AS pid
FROM Posts p JOIN PostHistory ph ON ph.PostId=p.Id
WHERE ph.PostHistoryTypeId in (2,5,9)
GROUP BY p.Id
)

SELECT 
pid AS [Post Link],
ph.Text
FROM lastrev_cte l INNER JOIN PostHistory ph ON l.MaxId=ph.id
WHERE pid=##id?1##

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results