where句を使用する必要がある2つのテーブルがあります。表1
CustomerID Product
1 Car
2 Table
3 Golf
4 Foo
5 Yoo
表2
CustomeID Comment
2 Three items
3 Returned
4 Complaint
このようなwhereステートメントに2つのフィルターを持つクエリがあります
Select * from table1 a left
join table2 b on a.customerid= b.customerid
where b.comment<>'Returned' and b.comment not like 'Three%'
クエリを実行すると、レコードが 1 つだけ取得されました。table2 (3 つのレコード) にない 2 つの customerID も返すようにしたい