1。我現在要求A 在10/11/10的'ret'平均值, 即(0.5+0.8+0.9)/3 有三條name=A的記錄,隻有一個date=10/11/10,不明白你怎麽求A在10/11/10的ret平均值,(0.5+0.8+0.9)/3是A的平均值; 2。A在10/11/10的‘ret'平均值, 即(0.8+0.9)/2, same issue here, just cannot get your logic.