参考データ:元々のゲームの傾向別、おかず得点と得点の関係の実行結果

→ このSQLをお気に入りに登録

SQLの説明

※ おかず評価が同じ程度のゲームに登録してるデータ。例えば「4」はとても使える評価が過半数のゲーム数本に含まれるデータです。

検索結果

※おかず得点通常得点中央値データ数
4488.0982
4380.0233
4278.0150
4170.0141
4-160.058
4-249.022
3487.05775
3380.04029
3275.02997
3171.02767
3-165.0964
3-260.0302
2485.08308
2380.08510
2275.011687
2170.011534
2-165.04550
2-260.01441
1485.06834
1380.09880
1278.017974
1175.049906
1-172.027640
1-270.011472
-1490.01232
-1385.02139
-1281.05807
-1180.026808
-1-176.046090
-1-275.030269
-2495.062
-2387.085
-2282.0234
-2180.01386
-2-180.04098
-2-274.011828

実行したSQL

      select om as ※,
 ot as おかず得点
 ,round(avg(t),1)  as 通常得点中央値 
 ,round(avg(r1+r2)-1) as データ数
from
(select om,
 okazu_tokuten as ot
 ,tokuten as t
 ,row_number() over(partition by okazu_tokuten,om order by tokuten,id) as r1
 ,row_number() over(partition by okazu_tokuten,om order by tokuten desc,id desc) as r2
from userreview ur,
(select 
 g
 ,max(ot) as om,min(ot) as om2
from
(select 
 game as g,
 okazu_tokuten as ot
 ,row_number() over(partition by game order by okazu_tokuten,id) as r1
 ,row_number() over(partition by game order by okazu_tokuten desc,id desc) as r2
from userreview ur
where tokuten is not null 
 and okazu_tokuten>-3

and game in(select id from gamelist where erogame ='t')
)r
where r1>=r2-1 
 and r1<=r2+1 
group by g)ot

where tokuten is not null and game=g
 and okazu_tokuten>-3 and om=om2
 and game in(select id from gamelist where erogame ='t')
)r2
where r1>=r2-1 
 and r1<=r2+1
group by ot,om
order by om desc,ot desc       

表紙へ
 ひろいん
 egamescape @ gmail.com