n-m self join

    Date: 08/07/05 (MySQL Communtiy)    Keywords: no keywords

    I’m a little stumped. We are building an application in which we need to join a table to itself in a many to many fashion.
    The problem is that the relationships are communitive so I can’t do the standard where clause. I have thought to pull out all the joining records with a
    2 selects in a union, but quite frankly that is ugly. Is there an elegant way to do this? I can’t think of one.

    Source: http://www.livejournal.com/community/mysql/65823.html

« InnoDB || Can anyone figure out why... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home