In the scenario described below, the following two queries achieve the same results: "I want to select all models from a table called PRODUCT that do not appear in a separate table called PC" This can be accomplished with the following code:
select model
from product
where model not in(
select model from pc);
This can also be accomplished by using an OUTER JOIN:
select product.model, pc.model
from product left join pc
on product.model = pc.model
where pc.model is null;
Seeing as these two queries achieve the same results, is one preferable over the other? Are there any advantages with using an OUTER JOIN in place of NOT IN?