fiogf49gjkf0d I used Query Analyzer to come up with the following SQL that returns what you are looking for. I think the issue might be that you are going to have to change the JOIN type between the account and contact table.
SELECT a.Account, c.FirstName, c.LastName, a.Accountmanagerid, a.Mainphone, a.Fax, c.Mobile, c.Email, b.Address1, b.Address2, b.Address3, b.City, a.Industry, a.Status FROM account a JOIN address b ON a.accountid = b.entityid LEFT JOIN contact c ON a.accountid = c.accountid
John G. |