select OwnerUserId, active_year, active_month from ( sele...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Japanese Language Meta

Q&A about the site for students, teachers, and linguists wanting to discuss the finer points of the Japanese language

select 
OwnerUserId,
active_year,
active_month
from
 ( select p.OwnerUserId,
   DATENAME(year, p.CreationDate) as active_year,
   DATENAME(month, p.CreationDate) as active_month
   from Posts p
   where p.OwnerUserId > 0 AND DATENAME(year, p.CreationDate) >= 2010 AND DATENAME(year, p.CreationDate) <= 2020 
   group by 
      p.OwnerUserId 
     ,DATENAME(year, p.CreationDate)
     ,DATENAME(month, p.CreationDate)
 ) as dt

Enter Parameters

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