Q&A for students, teachers, and linguists wanting to discuss the finer points of the Chinese language
SELECT PostId, Comment FROM (SELECT PostId, Comment, ROW_NUMBER() OVER (PARTITION BY PostId ORDER BY CreationDate DESC) AS rownum FROM PostHistory) ph WHERE rownum = 1;