My tables are as follow
productsA : name,price
productsB : name,date,price,...
At the moment, productsB contains a subset of productsA, with today's date (trying to make things simple, I know the info I'm missing, and will be able to sort out the rest).
I want to select all products from products A if there's no records in productsB for today's date. For simplification let's say date='2014-04-15' (fixed).
I tried :
SELECT a.*
FROM productsA AS a
LEFT OUTER JOIN productsB as b on a.name = b.name AND b.date != '2014-04-15'
But it doesn't work...
I tried to simplify, and remove the date parameter, but I end up with the whole productsA table, no matter how I try :
SELECT a.*
FROM productsA AS a
LEFT OUTER JOIN productsB AS b ON a.name = b.name
It must be simple, yet I'm stuck (I spared you all the errored attempts)... Anyone, help?