See the CreationDate of the most recent Vote record per VoteTypeId.

1

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science Meta

Q&A about the site for scientists using computers to solve scientific problems

WITH summary AS (
  SELECT
    VoteTypeId,
    CreationDate,
    ROW_NUMBER() OVER(PARTITION BY VoteTypeId ORDER BY CreationDate DESC) AS r
  from
    votes
)
select
  VoteTypeId,
  CreationDate
from summary
where r = 1
order by VoteTypeId

Enter Parameters

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