Hi everyone, what I am trying to do I think is simple.
given a table of unique DomainId's:
domainids:
45
46
47
48
49
50
51
and given a table of domainId's tied to products (1 product, may have many domain id's)
productid domainid
-------------------------
1 45
1 46
2 47
3 49
3 50
3 51
Given a domainid (say 46), I want to select from my first table of domain ids, filtering out domainids that are NOT tied to more than one product with the given domainid.
in this example, given 46... I look at the second table, and see 46 and 45 are tied together. so when I select from my first table, 45 is the only one that is selected.
given 50, only 49 and 51 are selected from the first table.
hope that's not confusing.. i think it makes sense.
thanks for the assistance!