comment partition by question

0

Please login or register to vote for this query.

(click on this box to dismiss)

Cognitive Sciences Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

select PostId, 
       Id
       
from (
   select PostId,
          Id, 
          row_number() over (partition by PostId order by PostId) as rn
   from Comments
) t
where rn = 1;

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results