テーブルスキーマは次のように設定されます。
userID Points timestamp
1 40
3 20
1 10
4 15
3 5
次のことを示すレポートを提示できる必要があります。
Total Points Allocated for the Day (0 if none allocated), (nice to have) To what userID's the points were allocated to for that day
私は次のことを試しましたが、ご覧のとおり正しくありません
SELECT uid, DATE(time_stamp) AS date, SUM(points) AS total_points
FROM table
GROUP BY date