Найти самую активную страну в 2017 году

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 top 1 u.location, count(distinct p.id) as count
from users u
join posts p on p.owneruserid = u.id
where u.location <> ' ' and year(p.creationdate) = 2017
group by u.location 
order by count desc

Enter Parameters

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