作者:
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問題二看不懂...喔看懂了,利用上面兩種方法變化一下就可以了,動一下腦吧