と を記録するデータベースがありuniqueID, location (country code), IPaddress
ますdate of visitors
。一意の日付ごとに各 IP アドレスの uniqueID 訪問の最大数のリスト (およびカウント) を作成する sql ステートメントを作成する必要があります。サンプルやヒントを提供してくれる人はいますか?
ありがとう、ゲイリー
単純な集計が必要だと思います:
select IpAddress, date, count(*)
from t
group by IpAddress, date;
個々の訪問者を数えてリストに入れたい場合は、訪問者 ID が必要です。おそらくそれが何であるかuniqueId
です。もしそうなら:
select IpAddress, date, count(distinct UniqueId),
group_concat(distinct UniqueId)
from t
group by IpAddress, date;