top 50 Belarus users

0

Please login or register to vote for this query.

(click on this box to dismiss)

スタック・オーバーフローMeta

プログラマーと熱狂的なプログラマーのためのサイトに関する質問と回答

with top_locations as (

select Location, count(1) records, row_number() over(order by count(1) desc) rn
from users
where Location is not null
group by Location
)
select top 100 u.*
from users u
inner join top_locations tl on u.Location = tl.Location and rn = 1

Enter Parameters

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