# How to use SQL to query discourse database

**URL:** <https://meta.discourse.org/t/how-to-use-sql-to-query-discourse-database/30874>\
**Category:** Product Support\
**Created:** [07.Июль.2015 22:52:57 UTC](https://meta.discourse.org/t/how-to-use-sql-to-query-discourse-database/30874 "2015-07-07T22:52:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Stackfish](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stackfish/32/38440_2.png) [@Stackfish](https://meta.discourse.org/u/Stackfish)\
**Post date:** [07.Июль.2015 22:52:57 UTC](https://meta.discourse.org/t/how-to-use-sql-to-query-discourse-database/30874/1 "2015-07-07T22:52:57Z")

</div>

This is a follow on question to one I had about finding who took part in a poll. I was told that I could get this with SQL query, but I’m not clear on how or where I can run this query.

Is there an adhoc query screen in discourse? If not, can someone point me in right direction as to where I can run SQL again discourses database.

Thanks

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-sql-to-query-discourse-database/30874)._
