# Badges for specific category

**URL:** https://meta.discourse.org/t/badges-for-specific-category/89745
**Category:** Feature
**Created:** [June 13, 2018, 8:01am UTC](https://meta.discourse.org/t/badges-for-specific-category/89745 "2018-06-13T08:01:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Daria](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daria/32/119615_2.png) [@Daria](https://meta.discourse.org/u/Daria)
#### Post date: [June 13, 2018, 8:01am UTC](https://meta.discourse.org/t/badges-for-specific-category/89745/1 "2018-06-13T08:01:49Z")

</div>

Hey,

Is it possible to give badges for getting likes just in one category so that a person can become a category specialist/master with the best reply in…for example?

I will have like 4 categories and I would like to have badges for the input to the certain topic rather than likes in all categories?

Thanks!

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [June 13, 2018, 9:03am UTC](https://meta.discourse.org/t/badges-for-specific-category/89745/2 "2018-06-13T09:03:07Z")

</div>

Sure, if you know SQL, you can write a custom badge query.

Here’s a topic for inspiration

> [@\[Superseded\] What cool badge queries have you come up with?](https://meta.discourse.org/t/what-cool-badge-queries-have-you-come-up-with/18978):
>
> warning Enabling Badge SQL entails security and performance risks so it is not available by default. For more information, see: [Enable Badge SQL](https://meta.discourse.org/t/badge-sql-can-no-longer-be-edited-by-default/47894) This topic became too long to be easily searched and has been broken down into separate topics. If you have any questions about how to write a badge query, or have one to share, please start a new topic in the #data & reporting category and tag it with the #sql-triggered-badge tag. +1 More ideas: [Some common badge queries](https://meta.discourse.org/t/some-common-badge-queries-idea/31859)
