# データエクスプローラーで結果数を表示しますか？

**URL:** <https://meta.discourse.org/t/have-data-explorer-show-number-of-results/96687>\
**Category:** Feature\
**Created:** [2018 年 9 月 7 日午後 10:34 UTC](https://meta.discourse.org/t/have-data-explorer-show-number-of-results/96687 "2018-09-07T22:34:50Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2018 年 9 月 13 日午後 6:43 UTC](https://meta.discourse.org/t/have-data-explorer-show-number-of-results/96687/11 "2018-09-13T18:43:18Z")

</div>

This looks promising  
[https://www.sitepoint.com/community/t/getting-the-number-of-rows-that-a-postgresql-select-would-return-without-a-limit-from-a-query-with-a-limit/306558/2?u=mittineague](https://www.sitepoint.com/community/t/getting-the-number-of-rows-that-a-postgresql-select-would-return-without-a-limit-from-a-query-with-a-limit/306558/2?u=mittineague)

[PostgreSQL: Documentation: 9.1: Value Expressions](https://www.postgresql.org/docs/9.1/static/sql-expressions.html#SYNTAX-WINDOW-FUNCTIONS)

> the window function is able to scan all the rows that would be part of the current row’s group according to the grouping specification

EDIT  
I just had a brief play on my localhost as a POC

```plaintext
SELECT users.username 
 , COUNT(users.username) OVER ()  
FROM users 
WHERE users.id > 4 
LIMIT 5

```

 ![over-count](https://global.discourse-cdn.com/meta/original/3X/a/7/a72feae0066c5ee7f59f10582a2c1b1f5d73995c.png)

---

_[View the full topic](https://meta.discourse.org/t/have-data-explorer-show-number-of-results/96687)._
