Page is a not externally linkable
- Code, Content, and Presentation
-- Databases
---- Selecting items with another item in common


abbeyvet - 11:56 am on Oct 26, 2008 (gmt 0)


Thanks, I see where you are coming from, but I don't think that's it.

"this should get you all the CatID's that have a one-to-many relationship with pID"

That's not what I am looking for though.

I know I haven't explained this well, but I won't have a pID to begin with in this scenario, I will only have a single CatID.

I need to take that single known CatID, get a list of pIDs it is related to, then extract all the other catIDs related to those, and only those, pIDs.

This table has many-to-many relationships and is one that I'm stuck with and can't change - but if I could figure this out it would be seriously life enhancing!


Thread source:: http://www.webmasterworld.com/databases_sql_mysql/3773560.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com