# What is SQL Badge Query for invited \>25 People?

**URL:** <https://meta.discourse.org/t/what-is-sql-badge-query-for-invited-25-people/83451>\
**Category:** Support\
**Created:** [March 21, 2018, 3:22am UTC](https://meta.discourse.org/t/what-is-sql-badge-query-for-invited-25-people/83451 "2018-03-21T03:22:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![iidbae](https://avatars.discourse-cdn.com/v4/letter/i/a183cd/32.png) [@iidbae](https://meta.discourse.org/u/iidbae)\
**Post date:** [March 21, 2018, 3:22am UTC](https://meta.discourse.org/t/what-is-sql-badge-query-for-invited-25-people/83451/1 "2018-03-21T03:22:44Z")

</div>

Hi, this is follow up my previous question from [Locked query field for system badges - #5 by iidbae](https://meta.discourse.org/t/copy-paste-locked-badge-query-sql-for-more-than-champion-or-invitation/83415/5)

So, I want to give a badge to a member who has successful invited 25 people.  
Just like the existing badge, the Campaigner (3 people) or Champion (5 people).  
The reward is only a badge without raising the Trust Level.

The concept is similar with the SQL Badge Query in “A badge for 10 accepted answers” [Discourse Solved](https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155) Only need changes the number.

I have see this ["Promoter" Badge broken?](https://meta.discourse.org/t/promoter-badge-broken/34413) and this [discourse/lib/badge\_queries.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/lib/badge_queries.rb) , but still afraid and confuse to found the correct sql.  
Maybe someone can help me.  
Thank you very much.

---

_[View the full topic](https://meta.discourse.org/t/what-is-sql-badge-query-for-invited-25-people/83451)._
