account_num transaction_amt
001 200
001 300
002 330
002 400
等等 我想显示为
account_num total_transaction
001 500
002 730
等等 请帮帮我
答案 0 :(得分:3)
SELECT account_num, sum(transaction_amt) as total_transaction
FROM mytable
GROUP BY account_num
然后按F1并查看“SQL-Select”下的帮助。