lr18-7

0

Please login or register to vote for this query.

(click on this box to dismiss)

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

プログラマーとプログラミングに熱心な人々のための質問と回答

SELECT TOP 100 DisplayName
FROM (SELECT OwnerUserId, count(*) c
	FROM Posts
	GROUP BY OwnerUserId) t
JOIN Users ON (t.OwnerUserId=Users.Id)
WHERE (Users.Location='Россия' OR Users.Location='Russia') AND t.c > ANY (SELECT c2
	FROM (SELECT OwnerUserId, count(*) c2
		FROM Posts
		GROUP BY OwnerUserId) t2
	JOIN Users ON (t2.OwnerUserId=Users.Id)
	WHERE (Users.Location='Polska' OR Users.Location='Poland'));

Enter Parameters

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