select USERS.NAME AS [User], GIFT.DATEADDED AS [Gift Deletion Date], GIFT.GLReversalConstituentName AS [Constituent Name]
INNER JOIN GIFT ON USERS.USER_ID = GIFT.ADDEDBYID
where GIFT.TYPE=32 --GL reversal Gift type only
Note: Once a gift is deleted, it is completely removed from the database with one exception. If a gift is marked as Posted (to GL) and then deleted, the gift type changes to GL Reversal. That gift remains in the database until the next posting to GL. Once the deleted gift is posted to GL, it is removed from the database as well. Therefore, the SQL statement can only pull gifts that have a type of GL Reversal, which are deleted posted gifts.
Disclaimer: We provide 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. Our 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.