現在の殿堂チャートの作り方です。 参考資料です *データ入力 [#f9facb5c] まず、ExcelにMuseの殿堂より各種データを転記します。殿堂チャートに間違いがある場合、ほぼここの作業で誤りが出ています。 #ref(http://musewiki.dip.jp/pho/SNAG-000108.jpg) *データベースへデータを投入 [#oec6dab7] 一旦、Excelに入力したデータをOracleデータベースへ投入します。~ 具体的にはSQLDeveloperにコピペします。 #ref(http://musewiki.dip.jp/pho/SNAG-000107.jpg) 投入するデータベースのテーブルのDDLは以下のようになっています。 #ref(http://musewiki.dip.jp/pho/SNAG-000105.jpg) *集計作業 [#i0961a95] Oracleデータベースにデータが入ったらこれをSQLで集計し殿堂チャートそれぞれのランキングを出します。 例として、殿堂ポイントのSQLは以下のようになります。 select a_name, hoshi, (select count(hyoka_num) from chart where author_name = a_name and hyoka_num = 2) kurohoshi, (select count(hyoka_num) from chart where author_name = a_name and hyoka_num = 1) shirohoshi , (select count(hyoka_num) from chart where author_name = a_name and hyoka_num = 0) muji from( select sum( case hyoka_num when 0 then 1 when 1 then 2 when 2 then 4 end ) hoshi, author_name a_name from chart group by author_name order by hoshi desc) order by hoshi desc,a_name *整形 [#bad4bd7f] あとは、ランキングを見やすいようにExcelに貼り付けて整形し体裁を整えます。~ 最終的に、PDFに出力して公開します。