# SQL access only a single expression can be used with GROUP BY

**URL:** <https://discuss.elastic.co/t/sql-access-only-a-single-expression-can-be-used-with-group-by/140456>\
**Category:** Elasticsearch\
**Created:** [July 18, 2018, 6:36am UTC](https://discuss.elastic.co/t/sql-access-only-a-single-expression-can-be-used-with-group-by/140456 "2018-07-18T06:36:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Wu](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@Jack\_Wu](https://discuss.elastic.co/u/Jack_Wu)\
**Post date:** [July 18, 2018, 6:36am UTC](https://discuss.elastic.co/t/sql-access-only-a-single-expression-can-be-used-with-group-by/140456/1 "2018-07-18T06:36:29Z")

</div>

I'm testing the Elasticsearch 6.3 / SQL Access, and I got a planning\_exception message: Currently, only a single expression can be used with GROUP BY.  
Do any one know when it will be solved in Elastic plan? Or how I can solve it by self in sql access?

---

<div class="post-metadata">

**Author:** ![Andrei\_Stefan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrei_stefan/32/47533_2.png) [@Andrei\_Stefan](https://discuss.elastic.co/u/Andrei_Stefan)\
**Post date:** [July 19, 2018, 4:58am UTC](https://discuss.elastic.co/t/sql-access-only-a-single-expression-can-be-used-with-group-by/140456/2 "2018-07-19T04:58:14Z")

</div>

Hi @Jack_Wu,

Indeed, in ES 6.3 this was not possible, but the restriction has been removed starting with ES 6.4.  
For your reference [this is the GH issue](https://github.com/elastic/elasticsearch/issues/31793) covering this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 16, 2018, 4:58am UTC](https://discuss.elastic.co/t/sql-access-only-a-single-expression-can-be-used-with-group-by/140456/3 "2018-08-16T04:58:18Z")

</div>

Closed on August 16, 2018, 4:58am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
