Goh.. grappig en iets wat ik tot nu toe nog niet wist.. je kunt dus op je JOIN statement in SQL gewoon meerdere conditions leggen. Dus zoiets al onderstaande kan gewoon.... dat was wel handig geweest als ik dat eerder had geweten ;-)
SELECT tbl.id, tblo.naam
FROM sometable tbl
LEFT JOIN someothertable tblo
ON tblo.id = tbl.id
AND tblo.function = tbl.function
ORDER BY ....
In het kader van totaal onnavolgbare berichtjes.. berichtje 1