2011-12-23 72 views
1

如何將條件查詢寫入以下SQL查詢。轉換爲條件查詢

select i.item_id,i.item_name,l.item_price 
from items i,pricelists l,sections s 
where i.id=100 and l.item_id=100 
and i.item_id not in (select s.item_id where s.id=100); 

由於提前

+0

添加映射,所以我們可以看到它 – ssedano 2011-12-23 15:14:50

+0

是你問題主要圍繞你如何做'不在'?否則它的一個簡單的項目創建標準,並把限制.. – aishwarya 2011-12-23 15:15:03

回答