1st task

0

Please login or register to vote for this query.

(click on this box to dismiss)

Engineering

Q&A for professionals and students of engineering

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;

Enter Parameters

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