The below SQL statement covers both the short titles as seen on the Constituent Record's Bio 1 tab as well as the Primary addressee/salutation information for the constituent as seen on the Adresses/Salutations tab
 
SELECT 
        r.ID as 'SystemRecordID', 
        r.CONSTITUENT_ID, 
        title1.LONGDESCRIPTION as 'title1', 
        title2.LONGDESCRIPTION as 'title2', 
        r.FULL_NAME, 
        r.PRIMARY_SALUTATION, 
        r.PRIMARY_ADDRESSEE, 
        te.LONGDESCRIPTION as 'SalutationType', 
        sal.SALUTATION 
FROM dbo.RECORDS r 
LEFT JOIN dbo.TABLEENTRIES title1 on title1.TABLEENTRIESID = r.TITLE_1 
LEFT JOIN dbo.TABLEENTRIES title2 on title2.TABLEENTRIESID = r.TITLE_2 
LEFT JOIN dbo.CONSTITUENT_SALUTATION sal on sal.CONSTIT_ID = r.id 
JOIN dbo.TABLEENTRIES te on te.TABLEENTRIESID = sal.SAL_TYPE

RODBA Disclaimer: We provide 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. Our 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.