SELECT RECORDS.ORG_NAME, RECORDS_1.FIRST_NAME, ADDRESS.ADDRESS_BLOCK, PHONES.NUM

FROM RECORDS
INNER JOIN CONSTIT_RELATIONSHIPS ON RECORDS.ID = CONSTIT_RELATIONSHIPS.CONSTIT_ID
INNER JOIN RECORDS AS RECORDS_1 ON CONSTIT_RELATIONSHIPS.RELATION_ID = RECORDS_1.ID
INNER JOIN ((CONSTIT_ADDRESS INNER JOIN ADDRESS ON CONSTIT_ADDRESS.ADDRESS_ID = ADDRESS.ID)
INNER JOIN CONSTIT_ADDRESS_PHONES ON CONSTIT_ADDRESS.ID = CONSTIT_ADDRESS_PHONES.CONSTITADDRESSID
INNER JOIN PHONES ON CONSTIT_ADDRESS_PHONES.PHONESID = PHONES.PHONESID) ON RECORDS_1.ID = CONSTIT_ADDRESS.CONSTIT_ID

WHERE
(CONSTIT_RELATIONSHIPS.IS_CONTACT=-1 AND RECORDS.KEY_INDICATOR='O') AND (RECORDS.IS_CONSTITUENT=-1)

Disclaimer: Blackbaud provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Blackbaud Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.