select u.id, u.displayname, u.location as 'u.location', y...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select u.id, u.displayname, u.location as 'u.location',
year(p.creationdate) as 'year', p.id as 'p.id',
pt.id as 'pt.id' 
--count(case when pt.id = 1  then 1 end) as 'count of questions',
--count(u.id) as 'count of users '
--u.displayname, year(p.creationdate), pt.id, p.id
--,
from users u
join posts p on p.owneruserid = u.id
join posttypes pt on pt.id = p.posttypeid
where 
--pt.id = 1 
u.location like '%Ru%'
--group by year(p.creationdate)
--u.id, u.displayname
--, pt.id = 1
--, u.displayname, p.creationdate
--order by year(p.creationdate) desc

Enter Parameters

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