Q&A about the site for software quality control experts, automation engineers, and software testers
SELECT PostId, Comment FROM (select TOP 10 PostId, Comment, ROW_NUMBER() OVER (PARTITION BY PostId ORDER BY CreationDate desc) AS rownum FROM PostHistory) ph WHERE rownum = 1;