参考データ:セールの価格帯の実行結果

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

SQLの説明

100円から9,900円まで100円刻みで どの価格が数が多いか表示してます。
※ 999円だけ別枠計算

検索結果

価格上2桁過去含めたセール数
12714
23472
37418
47599
551200
613219
736027
822546
928329
9992608
1,022982
1,117483
1,217943
1,326533
1,429515
1,549966
1,612265
1,711488
1,88006
1,915308
2,019317
2,13300
2,22429
2,33059
2,46897
2,56944
2,63702
2,71416
2,81469
2,95516
3,06522
3,15327
3,2554
3,31464
3,48675
3,59455
3,63333
3,78747
3,81863
3,93238
4,01776
4,11260
4,24603
4,3321
4,41263
4,5689
4,6293
4,7393
4,81869
4,9820
5,0145
5,1648
5,2930
5,3453
5,4242
5,5552
5,6228
5,753
5,8118
5,9204
6,0323
6,1230
6,293
6,386
6,488
6,566
6,6298
6,7328
6,8107
6,997
7,0191
7,1202
7,246
7,312
7,421
7,5195
7,624
7,7114
7,823
7,986
8,048
8,18
8,24
8,323
8,45
8,528
8,627
8,740
8,822
8,911
9,022
9,18
9,21
9,414
9,52
9,610
9,748
9,82
9,98

実行したSQL

      select '  '||left(content,1) as 価格上2桁,count(*) as 過去含めたセール数
from campaign_game 
where content like '%OFF' and content like '___円%'
group by 価格上2桁
union
select '  999',count(*)
from campaign_game
where content like '%999円' and content not like '%,999円'
union
select left(content,3) as 価格上2桁,count(*) as 過去含めたセール数
from campaign_game 
where content like '%OFF' and content like '_,_%'
group by 価格上2桁
order by 価格上2桁    

表紙
 ひろいん
 egamescape @ gmail.com