How do I exclude pledge payments from a Gift or Donation query?

When in a gift or donation query, you can exclude pledge payments from the query results by adding the "Apply To Pledge" field with the criteria set to “No”. This will only display donations that are not linked to any pledges.