If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Maybe, I am missing something, but this should work.
Code:
select a.vendor, a.part_nbr, b.part_nbr
from your_table a
inner join your_table b -- keep in mind this is same table
on a.vendor = b.vendor
and a.part_nbr <> b.part_nbr