select T.LONGDESCRIPTION, T2.LONGDESCRIPTION, T3.LONGDESCRIPTION
from CONSTIT_ADDRESS CA
join TABLEENTRIES T
        on T.TABLEENTRIESID = CA.TYPE
left join CONSTIT_RELATIONSHIPS CR
        on CR.CONSTIT_ADDRESS_ID = CA.ID
left join TABLEENTRIES T2
        on T2.TABLEENTRIESID = CR.RELATION_CODE
left join TABLEENTRIES T3
        on T3.TABLEENTRIESID = CR.RECIP_RELATION_CODE

 

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 that you are familiar with Structured Query Language and the tools used to create and modify SQL statements. Blackbaud Customer Support can help explain the functionality of a particular procedure but we will not modify, or assist you with modifying, these examples to provide additional functionality. If you are interested in learning more about the Read Only Database Assistance (RODBA), contact your Account Representative at solutions@blackbaud.com.