I have a question regarding the use of JOIN
in SQL in this case:
I have a produtos
table and a destaques
table that contains the id
of the product. I need to make a query that returns only the records that are not in the table highlights.
I tried this:
SELECT p.* FROM produto p
INNER JOIN destaques d ON p.idProduto!=d.idProduto
Only this query continues to return records that are also in the table highlights, did not work as expected.