2014年9月2日 星期二

SQL not exists

找BOM單身存在
但單頭不存在的品號

select * from BOMMD a
where not exists (
select MC001 from BOMMC where a.MD001=MC001 )

沒有留言:

張貼留言