作者:
xhiang (阿羊羽)
2014-07-06 13:56:00select sum(salary) from BBB where ID in(select ID from)from AAA where ID='James') 上面括号拿到下面select Name,sum(Salary) from AAA,BBB whereAAA.ID=BBB.ID and AAA.Name='James' group by AAA.Name问题二看不懂...喔看懂了,利用上面两种方法变化一下就可以了,动一下脑吧