Q&A about the site for people who use Blender to create 3D graphics, animations, or games
SELECT TOP(##num?100##) coalesce(p.ParentId, p.Id) AS [Post Link], ---returns the id of the question ---For questions p.ParentId is NULL, so this returns p.Id MAX(p.LastActivityDate) FROM Posts p GROUP BY coalesce(p.ParentId, p.Id) ORDER BY MAX(p.LastActivityDate) DESC