# Gibt es eine Möglichkeit, nach Beiträgen ohne Mitarbeiterantworten zu suchen?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-search-by-posts-with-no-staff-replies-on-it/126004
**Category:** Data & reporting
**Tags:** sql-query
**Created:** [16. August 2019 um 17:50 UTC](https://meta.discourse.org/t/is-there-a-way-to-search-by-posts-with-no-staff-replies-on-it/126004 "2019-08-16T17:50:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![James\_Anderson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/james_anderson/32/153266_2.png) [@James\_Anderson](https://meta.discourse.org/u/James_Anderson)
#### Post date: [16. August 2019 um 17:50 UTC](https://meta.discourse.org/t/is-there-a-way-to-search-by-posts-with-no-staff-replies-on-it/126004/1 "2019-08-16T17:50:33Z")

</div>

Gibt es eine Möglichkeit, nach Beiträgen zu suchen, auf die keine Mitarbeiter geantwortet haben? Das würde helfen, Beiträge leichter zu finden!

Vielen Dank!

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [16. August 2019 um 22:24 UTC](https://meta.discourse.org/t/is-there-a-way-to-search-by-posts-with-no-staff-replies-on-it/126004/5 "2019-08-16T22:24:26Z")

</div>

Ich bin mir ziemlich sicher, dass du den [Discourse Data Explorer](https://meta.discourse.org/t/data-explorer-plugin/32566) verwenden musst. Mir ist nicht bekannt, dass dies über eine Suche irgendwie angezeigt wird.

---

<div class="post-metadata">

### Author: ![James\_Anderson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/james_anderson/32/153266_2.png) [@James\_Anderson](https://meta.discourse.org/u/James_Anderson)
#### Post date: [16. August 2019 um 22:37 UTC](https://meta.discourse.org/t/is-there-a-way-to-search-by-posts-with-no-staff-replies-on-it/126004/6 "2019-08-16T22:37:55Z")

</div>

Vielen Dank, ich werde es mir gleich ansehen!

---

<div class="post-metadata">

### Author: ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)
#### Post date: [17. August 2019 um 00:16 UTC](https://meta.discourse.org/t/is-there-a-way-to-search-by-posts-with-no-staff-replies-on-it/126004/7 "2019-08-17T00:16:41Z")

</div>

Sobald Sie das [Data Explorer](https://meta.discourse.org/t/32566?silent=true)-Plugin installiert haben, sollte dies das liefern, wonach Sie suchen.

> [@tshenry](#):
>
> ```sql
> SELECT t.id topic_id, category_id
> FROM topics t
> WHERE t.deleted_at IS NULL
> AND t.category_id IS NOT NULL
> AND t.id NOT IN (
> SELECT p.topic_id
> FROM posts p 
> JOIN users u ON p.user_id = u.id
> WHERE u.admin = 't' OR u.moderator = 't'
> AND p.post_number > 1
> )
> 
> ```

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [17. August 2019 um 03:24 UTC](https://meta.discourse.org/t/is-there-a-way-to-search-by-posts-with-no-staff-replies-on-it/126004/8 "2019-08-17T03:24:41Z")

</div>

Ich habe ein wenig mit Abfragen zu `group_users`, `topic_users` und `topics` experimentiert, als mir ein Feld namens `moderator_posts_count` in den Topics aufgefallen ist. Da bin ich sofort begeistert!!!

Ich habe versucht:

```plaintext
SELECT topics.id as topic_id 
FROM topics 
WHERE topics.moderator_posts_count < 1 

```

:sadpanda: Nicht so viel Glück – die Ergebnisse weichen stark von denen der komplexeren Abfrage ab.
