select min(id) [cut off] , eomonth(creationdate) [end of ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Music Fans

Q&A for music historians, critics, and fans

select min(id) [cut off]
, eomonth(creationdate) [end of month]
from votes
group by eomonth(creationdate)
order by 2

select top 1 id
from votes
where creationdate < dateadd(yy,-1,getdate())
order by creationdate desc

Enter Parameters

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