Re: SQL Help
Whether do you need to write the SQL over sugar database the code could be this one:
SELECT distinct(c.id),c.first_name,c.last_name FROM accounts a, contacts c,accounts_contacts a_c where c.deleted=0 and a_c.deleted=0 and a.deleted=0 and a_c.contact_id=c.id and a_c.account_id=a.id
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Bookmarks