create table #spammers(accountid int) exec sede_ineachd...

0

Please login or register to vote for this query.

(click on this box to dismiss)

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

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

create table #spammers(accountid int)


exec sede_ineachdb '
insert into #spammers
select accountid
from users
where reputation = 1
and displayname like ''%spam%'' COLLATE Latin1_General_100_CI_AI)
', 1 , 0 , 0, 0

select count(distinct accountid) [# spam profiles]

from #spammers

Enter Parameters

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