# SQL like Group by in Elasticsearch

**URL:** <https://discuss.elastic.co/t/sql-like-group-by-in-elasticsearch/129265>\
**Category:** Elasticsearch\
**Created:** [April 24, 2018, 9:01am UTC](https://discuss.elastic.co/t/sql-like-group-by-in-elasticsearch/129265 "2018-04-24T09:01:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 24, 2018, 12:00pm UTC](https://discuss.elastic.co/t/sql-like-group-by-in-elasticsearch/129265/6 "2018-04-24T12:00:37Z")

</div>

May be I don't understand so an example would help.  
Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

But may be others have an idea.

---

_[View the full topic](https://discuss.elastic.co/t/sql-like-group-by-in-elasticsearch/129265)._
