Users with Monica theme username

0

Please login or register to vote for this query.

(click on this box to dismiss)

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

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

with a as 
(select *,
        Case
           When displayname like '%reinstate%' collate SQL_Latin1_General_CP1_CI_AS
           Then 10
           When displayname like '%fund%' collate SQL_Latin1_General_CP1_CI_AS
           Then 9
           When displayname like '%says%' collate SQL_Latin1_General_CP1_CI_AS
           Then 8
           When displayname like '%supports%' collate SQL_Latin1_General_CP1_CI_AS
           Then 7
           When displayname like '%je suis%' collate SQL_Latin1_General_CP1_CI_AS
           Then 6
           When displayname like '%wants%' collate SQL_Latin1_General_CP1_CI_AS
           Then 5
           When displayname like '%justice%' collate SQL_Latin1_General_CP1_CI_AS
           Then 4
           Else 0
         End   addition 
 from users)
select displayname, addition, count(displayname) OVER(ORDER BY addition Desc)
from a
where displayname like '%Monica%' collate SQL_Latin1_General_CP1_CI_AS
order by addition Desc

Enter Parameters

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