Q&A about the site for practitioners of the art and science of signal, image and video processing
SELECT t.Count, t.TagName, x.Body AS ExcerptText, d.Body AS WikiText, IIF(0 < LEN(x.Body), 1, 0) AS xe, IIF(0 < LEN(d.Body), 1, 0) AS de FROM (Tags AS t LEFT JOIN Posts AS x ON t.ExcerptPostId = x.Id) LEFT JOIN Posts AS d ON t.WikiPostId = d.Id ORDER BY t.Count DESC;