我有这张桌子
user_id time_completed
4 86.30887
5 57.81364
5 35.50281
5 10.00000
5 74.19355
5 31.91489
6 15.00000
6 20.50000
我总结时间并替换另一个表(db_users)中的用户:
id username country
1 admin ES
2 peter IT
3 tom US
4 user GB
5 joey GE
6 helen FR
但我也需要国家行也出现:
user_id time_completed country
joey 209.42489 GE
user 86.30887 GB
helen 35.50000 FR