# Исключить группы из запроса «Лучшие участники»

**URL:** <https://meta.discourse.org/t/exclude-groups-from-top-quality-members-query/156510>\
**Category:** Data & reporting\
**Tags:** sql-query\
**Created:** [01.Июль.2020 18:42:12 UTC](https://meta.discourse.org/t/exclude-groups-from-top-quality-members-query/156510 "2020-07-01T18:42:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [02.Июль.2020 14:14:24 UTC](https://meta.discourse.org/t/exclude-groups-from-top-quality-members-query/156510/4 "2020-07-02T14:14:24Z")

</div>

А, точно. Оператор `not in` не сработал так, как я сначала подумал. По сути, он ничего не делает. Мне кажется, нужно сначала выполнить запрос, который находит пользователей, не состоящих ни в одной группе, а затем соединить его с остальной частью запроса.

Извините.

---

_[View the full topic](https://meta.discourse.org/t/exclude-groups-from-top-quality-members-query/156510)._
