SELECT RECORDS.ID AS [Record ID], Installment.PledgeId AS [Pledge ID], Installment.Amount AS [Installment Amount Due], Installment.Dte AS [Installment Date Due], InstallmentPayment.Amount AS [Installment Payment]
INNER JOIN CONSTIT_GIFTS ON RECORDS.ID = CONSTIT_GIFTS.CONSTIT_ID
INNER JOIN GIFT ON CONSTIT_GIFTS.GIFT_ID = GIFT.ID
INNER JOIN Installment ON GIFT.ID = Installment.PledgeId
LEFT JOIN InstallmentPayment ON Installment.InstallmentId = InstallmentPayment.InstallmentId
ORDER BY Installment.PledgeID
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.