私は、同じIDの行の重複を持つテーブルから、平均と最後の日付の行を取得しようとしています:
Table:
ID VisitID Date Value
1 1 10-10-2001 1
2 1 10-11-2001 1
1 2 10-11-2001 3
OUT PUT
Table:
ID VisitID Date Value
1 1 10-11-2001 ***(max date)*** 2 (***total of the two date/number of rows)***
2 1 10-11-2001 1
前もって感謝します。