# Group-by SQL queries -\> Documentation for exploring APM server capabilities (filters / grouping / etc) while migrating from New Relic

**URL:** <https://discuss.elastic.co/t/group-by-sql-queries-documentation-for-exploring-apm-server-capabilities-filters-grouping-etc-while-migrating-from-new-relic/178848>\
**Category:** APM\
**Created:** [April 29, 2019, 6:19am UTC](https://discuss.elastic.co/t/group-by-sql-queries-documentation-for-exploring-apm-server-capabilities-filters-grouping-etc-while-migrating-from-new-relic/178848 "2019-04-29T06:19:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![calvindeck](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@calvindeck](https://discuss.elastic.co/u/calvindeck)\
**Post date:** [April 29, 2019, 6:19am UTC](https://discuss.elastic.co/t/group-by-sql-queries-documentation-for-exploring-apm-server-capabilities-filters-grouping-etc-while-migrating-from-new-relic/178848/1 "2019-04-29T06:19:45Z")

</div>

**Kibana version** : v 7.0.0

**Elasticsearch version** : 7.0.0

**APM Server version** : 7.0.0

**APM Agent language and version** : Django - elastic-apm==4.1.0

**Browser version** : 66.0.3 (64-bit) Firefox

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: deb

**Fresh install or upgraded from other version?** : Fresh.

**Is there anything special in your setup?** No

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:

1. As a part of exploring Elastic APM in order to move away from New Relic, we've setup ES, Kibana and APM server without issues.
2. Used the Django agent to configure our app and successfully send data into the APM server.
3. **The issue** :

 ![queries](https://us1.discourse-cdn.com/elastic/original/3X/e/7/e7b30ddf1858567dd0888afeacb4611d224ba563.png)

As you can see above, we were looking at the request details and was wondering if we could group by those SQL queries - see all the views which has that SQL query.

I didn't find an obvious answer.

Hence using this as a "use case", I would like help on how to do that while understanding from where I can learn more about how all I can use the APM server - documentation / tutorials / examples.

Thank you!

---

<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:** [May 20, 2019, 2:19am UTC](https://discuss.elastic.co/t/group-by-sql-queries-documentation-for-exploring-apm-server-capabilities-filters-grouping-etc-while-migrating-from-new-relic/178848/2 "2019-05-20T02:19:57Z")

</div>

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