I have the following question related to joining tables together in SQL:
List all products
that have not been sold on 13.05.2003
. Taking into account the tables Orders
, LineItem
and Product
.
What I have coded is the following:
SELECT p.Pid, p.Label
from Product p natural join line_item l
natural join Orders
where Date <> "2003-05-13"
The problem is that when I execute this code it appears more data tan it should be and I am not sure how to get rid of duplicates with join
.
Thank you in advance