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
    CreationDate,
    ROW_NUMBER() OVER(partition by VoteTypeId order by CreationDate desc) as rk
  from
    votes
)
select *
from Summary
where rk = 1

Enter Parameters

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