倉庫番号3および単価が100未満のものはすべて検索しようとしています。SQL(MS Access)の構文
select part_number,
part_description,
Units_on_Hand,
Unit_price,
Warehouse_number
from part
where unit_price >= 100
and not in warehouse_number = 3;
倉庫番号3および単価が100未満のものはすべて検索しようとしています。SQL(MS Access)の構文
select part_number,
part_description,
Units_on_Hand,
Unit_price,
Warehouse_number
from part
where unit_price >= 100
and not in warehouse_number = 3;
問題がnot in
です。あなたは行うことができます。
where unit_price >= 100 and
not (warehouse_number = 3);
または:
where unit_price >= 100 and
warehouse_number not in (3);
または:
where unit_price >= 100 and
warehouse_number <> 3;
これらはすべて同じです。最後は、1つの倉庫についてこれを書くための「典型的な」方法でしょう。複数の倉庫がある場合は、2番目の方法がより一般的な方法になります。
こんにちはクレイ - [質問する]と[MCVE]を読んでみてください。この質問には、あなたが見ているエラーを含め、質問のタイトルのエラーを参照することで、質問ページでさえ、タグからのSQL /アクセスと言うことができます)。 – Jeff