请教这个SQL怎么写?多条件排除的查询!
xjbs 2003-09-01 10:23:46 表A:dept,goodscode,price
表B:dept,goodscode,spmprice//特价
现要将出现在表B中各部门的商品不出现在对表A的查询中
例:
Table A:
0001 a01 1.5
0001 a02 2.2
0001 a03 4.8
...
0002 a01 1.5
0002 a02 2.0
0002 a03 3.6
....
Table B:
0001 a03 3.6
0002 a01 3.8
写一个查询
要求结果是这样的:
dept goods price
0001 a01 1.5
0001 a02 2.2
0002 a02 2.0
0002 a03 3.6
help!!:)