mysql:8662
From: Kenichi-Ashida <Kenichi-Ashida <ashiken@xxxxxxxxxx>>
Date: Tue, 27 Jan 2004 15:28:47 +0900
Subject: [mysql 08662] 複数フィールドに対する頻度集計
あしだ@MySQL初心者です
ちょっと悩んでいます。
Table1にField1, Field2, Field3の3つのフィールド(VARCHAR(20))があります。
そこで3つのフィールドに入力されているデータの頻度集計を求めたいのですが
うまい方法を御存知ないでしょうか?
【例】--------------------------------------
<Table1>
[ID] [Field1] [Field2] [Field3]
1 ○ △ □
2 □ ○ NULL
3 × NULL □
4 □ ○ ×
(希望する集計結果)
□ 4
○ 3
× 2
△ 1
---------------------------------------------
3.23.56 Windows版を使用しています。
よろしくお願いします。
-> 8662 2004-01-27 15:28 [Kenichi-Ashida <ashi] 複数フィールドに対する頻度集計 8667 2004-01-28 02:58 ┗[ML account <ml@xxxxx] 8668 2004-01-28 11:21 ┗[Kenichi-Ashida <ashi] 8669 2004-01-28 15:29 ┗[ML account <ml@xxxxx]