在线求一SQL查询,谢谢
两个表:
表一:
Agency_code Agency_Name Amount COA_ID
----------- ------------- ------ --------
MVSIN Agency Name a 200.01 1950-000
MVSIN Agency Name b 300 1011-002
MVSIN Agency Name c 200.01 1111-002
MVSIN Agency Name d 200.01 1011-005
MVSIN Agency Name e 200.01 1111-099
MAXSGP Agency Name f 200.01 1211-003
MAXSGP Agency Name g 200.01 1111-005
MAXSGP Agency Name h 200.01 8150-000
MAXSGP Agency Name i 200.01 9160-101
MAXSGP Agency Name j 200.01 8380-001
MAXSGP Agency Name k 200.01 1540-000
表2:
Agency_Code Cagetory Group