I\'m writing an export function, where I need to export contacts to Excel, and I\'ve run into a technical snag - or perhaps a gap in my SQL skills is closer to the truth. ;)
SELECT Contact.Name as cName, Role.Name as rName FROM Contact
JOIN ContactRole ON (Contact.ID==ContactRole.ContactID)
JOIN Role ON ON (Role.ID==ContactRole.RoleID)