The sample query below will illustrate how to display the recurring gift payment schedule .

Microsoft SQL Query:

SELECT RECORDS.FIRST_NAME, RECORDS.LAST_NAME, GIFT.TYPE, GIFT_1.Amount

FROM RECORDS
INNER JOIN GIFT ON RECORDS.ID = GIFT.CONSTIT_ID
INNER JOIN RecurringGiftActivity ON GIFT.ID = RecurringGiftActivity.RecurringGiftId
INNER JOIN GIFT AS GIFT_1 ON RecurringGiftActivity.PaymentId = GIFT_1.ID

WHERE GIFT.TYPE=30

Microsoft Access Query:

SELECT

dbo_RECORDS.FIRST_NAME, dbo_RECORDS.LAST_NAME, dbo_GIFT.TYPE, dbo_GIFT_1.Amount

FROM

dbo_RECORDS

INNER JOIN ((dbo_GIFT INNER JOIN dbo_RecurringGiftActivity ON dbo_GIFT.ID =

dbo_RecurringGiftActivity.RecurringGiftId)

INNER JOIN dbo_GIFT AS dbo_GIFT_1 ON dbo_RecurringGiftActivity.PaymentId =

dbo_GIFT_1.ID) ON dbo_RECORDS.ID = dbo_GIFT.CONSTIT_ID

WHERE

(((dbo_GIFT.TYPE)=30));

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.