# Exclude from database

**URL:** https://pug.phocassoftware.com/t/exclude-from-database/2684
**Category:** Ask the Community
**Created:** [April 8, 2024, 1:49pm UTC](https://pug.phocassoftware.com/t/exclude-from-database/2684 "2024-04-08T13:49:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lairdl](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@lairdl](https://pug.phocassoftware.com/u/lairdl)
#### Post date: [April 8, 2024, 1:49pm UTC](https://pug.phocassoftware.com/t/exclude-from-database/2684/1 "2024-04-08T13:49:48Z")

</div>

We know we can exclude records when analyzing data, and I believe there is way to exclude data from the database without rewriting the SQL query. I do believe we did it once, and I did not take notes, and can’t remember.  
I have been looking through documentation and can’t seem to find it.

A little help anyone.  
Thanks.

---

<div class="post-metadata">

### Author: ![lairdl](https://avatars.discourse-cdn.com/v4/letter/l/ecb155/32.png) [@lairdl](https://pug.phocassoftware.com/u/lairdl)
#### Post date: [April 8, 2024, 2:02pm UTC](https://pug.phocassoftware.com/t/exclude-from-database/2684/2 "2024-04-08T14:02:14Z")

</div>

Found it - it is a filter on the database.
