SQL语句:多表查询并计算再求和

2024-11-15 18:31:52
推荐回答(2个)
回答1:

try this one
SELECT SUM(t1.totalTime* b.时薪)
FROM (SELECT 人模仿员ID, SUM(工首则作时间编号) AS totalTime FROM A GROUP BY 人员旦芹纤ID) t1, B
WHERE t1.人员ID = B.人员ID

回答2:

你把你写的查询当作一个表,在外边SUM就可以了