请帮我写查询。
我有 2 个表:“项目”和“债务”
“债务”表有
id | project_id | currency_list | total
1 | 1 | 1 | 1000
2 | 1 | 2 | 500
3 | 2 | 1 | 1000
4 | 2 | 2 | 500
...
Run Code Online (Sandbox Code Playgroud)
我需要编写查询以从项目中获取 1000 行,并将所有“总计”与“currency_list”组相加
非常感谢 :)