Microsoft SQL Query:

SELECT RECORDS.ID, RECORDS.FIRST_NAME + ' ' + RECORDS.LAST_NAME AS Name, GiftSplit.Amount, CONSTIT_GIFTS.FLAGS, GIFT.DTE

FROM RECORDS
INNER JOIN (CONSTIT_GIFTS INNER JOIN GIFT ON CONSTIT_GIFTS.GIFT_ID = GIFT.ID) ON RECORDS.ID = CONSTIT_GIFTS.CONSTIT_ID
INNER JOIN GiftSplit ON GIFT.ID = GiftSplit.GiftId
LEFT JOIN GiftSoftCredit ON GIFT.ID = GiftSoftCredit.GiftId

WHERE RECORDS.ID In (280,669) AND GiftSoftCredit.GiftId Is Null -- Display gifts for specific record

Microsoft Access Query:

SELECT DBO_RECORDS.ID, DBO_RECORDS.FIRST_NAME & " " & DBO_RECORDS.LAST_NAME AS Name, DBO_GiftSplit.Amount, DBO_CONSTIT_GIFTS.FLAGS, DBO_GIFT.DTE

FROM ((DBO_RECORDS INNER JOIN (DBO_CONSTIT_GIFTS INNER JOIN DBO_GIFT ON DBO_CONSTIT_GIFTS.GIFT_ID = DBO_GIFT.ID) ON DBO_RECORDS.ID = DBO_CONSTIT_GIFTS.CONSTIT_ID) INNER JOIN DBO_GiftSplit ON DBO_GIFT.ID = DBO_GiftSplit.GiftId) LEFT JOIN DBO_GiftSoftCredit ON DBO_GIFT.ID = DBO_GiftSoftCredit.GiftId

WHERE (((DBO_RECORDS.ID) In (280,669)) AND ((DBO_GiftSoftCredit.GiftId) Is Null));

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.