SELECT g.GoodID, g.GoodName
FROM Goods g
LEFT JOIN Payments p ON g.GoodID = p.GoodID AND YEAR(p.PaymentDate) = 2005
WHERE p.GoodID IS NULL;
select g.good_name
from Goods g
where not exists (
select 1
from Payments p
where p.good = g.good_id
and p.date >= '2005-01-01'
and p.date < '2006-01-01'
);