# 데이터 탐색기 - 투표 수

**URL:** <https://meta.discourse.org/t/data-explorer-vote-count/266441>\
**Category:** Data & reporting\
**Tags:** topic-voting, sql-query\
**Created:** [5월 28, 2023, 2:45오후 UTC](https://meta.discourse.org/t/data-explorer-vote-count/266441 "2023-05-28T14:45:49Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![tyf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tyf/32/288655_2.png) [@tyf](https://meta.discourse.org/u/tyf)\
**Post date:** [5월 28, 2023, 2:45오후 UTC](https://meta.discourse.org/t/data-explorer-vote-count/266441/1 "2023-05-28T14:45:49Z")

</div>

안녕하세요!

[Data Explorer](https://meta.discourse.org/t/32566?silent=true) 플러그인을 사용 중이며, Feedback 카테고리 내의 주제(topics)를 가져오려고 하고 있습니다. 다음 쿼리를 사용하면 잘 작동합니다:

```plaintext
SELECT
    t.id AS topic_id,
    t.title AS topic_title,
    t.excerpt,
    t.like_count,
    ('https://our_community.com/t/' || t.slug || '/' || t.id) AS url
FROM 
    topics t
WHERE 
    t.category_id = 95
AND 
    t.created_at > NOW() - INTERVAL '2 years'
AND deleted_at IS NULL

```

불확실한 점은 Topic Voting 플러그인과 관련된 투표 수(vote count)를 어떻게 함께 포함할 수 있는지에 대한 것입니다. 위의 쿼리에 각 게시글별로 투표 수를 포함하는 방법을 아시는 분 계신가요?

---

_[View the full topic](https://meta.discourse.org/t/data-explorer-vote-count/266441)._
