# 커스텀 규칙으로 커스텀 배지 만들기

**URL:** <https://meta.discourse.org/t/creating-custom-badge-with-custom-rules/257688>\
**Category:** Data & reporting\
**Tags:** sql-triggered-badge\
**Created:** [3월 10, 2023, 11:27오전 UTC](https://meta.discourse.org/t/creating-custom-badge-with-custom-rules/257688 "2023-03-10T11:27:22Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ClawdiaWolf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clawdiawolf/32/262518_2.png) [@ClawdiaWolf](https://meta.discourse.org/u/ClawdiaWolf)\
**Post date:** [3월 14, 2023, 6:31오전 UTC](https://meta.discourse.org/t/creating-custom-badge-with-custom-rules/257688/9 "2023-03-14T06:31:44Z")

</div>

1번에 대해 말씀드리자면, 그것은 테이블 별칭 이름입니다.

FROM user\_stats st라는 줄을 보셨나요? 이 줄은 쿼리에서 st가 user\_stats 테이블의 줄임말임을 알려줍니다.

JOIN 문에서 **users u** 라고 쓰인 부분도 마찬가지입니다. 해당 쿼리에서 u가 users 테이블의 별칭임을 나타냅니다. 별칭은 쿼리를 더 간결하게 작성하고 타이핑을 줄여 오류 가능성을 낮추기 위해 사용됩니다.

3번에 대해 말씀드리자면, 해당 옵션을 활성화하면 사용자가 쿼리에 따라 더 이상 배지를 받을 자격이 없게 되면 해당 배지가 계정에서 제거됩니다.

---

_[View the full topic](https://meta.discourse.org/t/creating-custom-badge-with-custom-rules/257688)._
