Since the records for unposted gifts are removed from the database when deleted in the front end (UI), you can only view deleted gifts that were already posted to General Ledger. The SQL query below will pull the posted gifts that were deleted, the user name and the date it was deleted. 

select USERS.NAME AS [User], GIFT.DATEADDED AS [Gift Deletion Date], GIFT.GLReversalConstituentName AS [Constituent Name]
from USERS 
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.