Microsoft SQL Query:

SELECT GIFT.ID, RECORDS.FIRST_NAME + ' ' + RECORDS.LAST_NAME AS Name, GIFT.RECEIPT_AMOUNT,
GiftSplit.Amount, RECORDS.ID, RECORDS_1.FIRST_NAME + ' ' + RECORDS_1.LAST_NAME AS Soft_Credit_Name, GiftSoftCredit.Amount as Soft_Credit_Amt

FROM CONSTIT_GIFTS
INNER JOIN RECORDS ON CONSTIT_GIFTS.CONSTIT_ID = RECORDS.ID
INNER JOIN GIFT ON CONSTIT_GIFTS.GIFT_ID = GIFT.ID
INNER JOIN GiftSoftCredit ON GIFT.ID = GiftSoftCredit.GiftId
INNER JOIN GiftSplit ON GIFT.ID = GiftSplit.GiftId
INNER JOIN RECORDS AS RECORDS_1 ON GiftSoftCredit.ConstitId = RECORDS_1.ID


Microsoft Access Query:

SELECT

dbo_GIFT.ID, dbo_RECORDS.FIRST_NAME & " " & dbo_RECORDS.LAST_NAME AS Name, dbo_GIFT.RECEIPT_AMOUNT, dbo_GiftSplit.Amount, dbo_RECORDS.ID, dbo_RECORDS_1.FIRST_NAME & " " & dbo_RECORDS_1.LAST_NAME AS [Soft Credit Name], dbo_GiftSoftCredit.Amount

FROM

(((dbo_CONSTIT_GIFTS INNER JOIN dbo_RECORDS ON dbo_CONSTIT_GIFTS.CONSTIT_ID = dbo_RECORDS.ID) INNER JOIN dbo_GIFT ON dbo_CONSTIT_GIFTS.GIFT_ID = dbo_GIFT.ID) INNER JOIN dbo_GiftSplit ON dbo_GIFT.ID = dbo_GiftSplit.GiftId) INNER JOIN (dbo_GiftSoftCredit INNER JOIN dbo_RECORDS AS dbo_RECORDS_1 ON dbo_GiftSoftCredit.ConstitId = dbo_RECORDS_1.ID) ON dbo_GIFT.ID = dbo_GiftSoftCredit.GiftId;

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.