SELECT 
    GLA.ACCOUNTNUMBER, GLA.DESCRIPTION, GLAS.GL7SEGMENTSID, GLAC.ACCOUNTCODE,
    GLAC.DESCRIPTION ACCOUNTCODESCRIPTION, GF.FUNDID, GF.DESCRIPTION FUNDDESCRIPTION, TE.DESCRIPTION

FROM
GL7ACCOUNTS GLA
    LEFT JOIN GL7ACCOUNTSEGMENTS GLAS ON GLA.GL7ACCOUNTSID = GLAS.GL7ACCOUNTSID
    LEFT JOIN GL7ACCOUNTCODES GLAC ON GLAS.GL7ACCOUNTCODESID = GLAC.GL7ACCOUNTCODESID
    LEFT JOIN GL7FUNDS GF ON GF.GL7FUNDSID = GLAS.GL7FUNDSID
    LEFT JOIN TABLEENTRIES TE ON TE.TABLEENTRIESID = GLAS.TABLEENTRIESID

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.