# USQL - Extract list of Page and Page group

**URL:** <https://community.dynatrace.com/t/usql-extract-list-of-page-and-page-group/31472>\
**Category:** Real User Monitoring\
**Tags:** usql\
**Created:** [May 14, 2021, 1:18pm UTC](https://community.dynatrace.com/t/usql-extract-list-of-page-and-page-group/31472 "2021-05-14T13:18:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![monitoringteam1](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@monitoringteam1](https://community.dynatrace.com/u/monitoringteam1)\
**Post date:** [May 14, 2021, 1:18pm UTC](https://community.dynatrace.com/t/usql-extract-list-of-page-and-page-group/31472/1 "2021-05-14T13:18:04Z")

</div>

Hello,

is it possible to extract the list of page / pagegroup using USQL? I tried a simple query like:

SELECT page FROM userevent

But I get all null values.

Am I doing anything wrong?

Thank you,

---

<div class="post-metadata">

**Author:** ![Dallas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dallas/32/31233_2.png) [@Dallas](https://community.dynatrace.com/u/Dallas)\
**Post date:** [May 14, 2021, 5:50pm UTC](https://community.dynatrace.com/t/usql-extract-list-of-page-and-page-group/31472/2 "2021-05-14T17:50:27Z")

</div>

Hey&nbsp;[@monitoringteam1](https://community.dynatrace.com/user/27707)&nbsp;,

You could extract a list of page loads from the user sessions data and apply a Distinct filter to eliminate duplicates.

Is your query returning an error or a null values? When I use the SELECT “page” it returns an error. so I used “useraction.name” instead of “page” and “useraction” instead of “userevent”

I tried a query like below:

SELECT DISTINCT useraction.name FROM useraction WHERE name STARTSWITH “Loading”

That returned all of the various page loads that the users are performing. Note: that it might differ if you have user action naming set up differently than I do.

-Dallas

---

<div class="post-metadata">

**Author:** ![monitoringteam1](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@monitoringteam1](https://community.dynatrace.com/u/monitoringteam1)\
**Post date:** [May 18, 2021, 3:00pm UTC](https://community.dynatrace.com/t/usql-extract-list-of-page-and-page-group/31472/3 "2021-05-18T15:00:26Z")

</div>

Hello,

you are referring to&nbsp;useraction.name. I am talking about Page and Page groups:

 ![monitoringteam1_0-1621350002722.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/e/be3d1db5f48e5f5779da41da972343ec2675b574.png)

Any suggestion about that?

Thanks,

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [May 18, 2021, 3:20pm UTC](https://community.dynatrace.com/t/usql-extract-list-of-page-and-page-group/31472/4 "2021-05-18T15:20:44Z")

</div>

Does this do what you want?

SELECT distinct userevent.page from usersession

---

<div class="post-metadata">

**Author:** ![monitoringteam1](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@monitoringteam1](https://community.dynatrace.com/u/monitoringteam1)\
**Post date:** [May 19, 2021, 1:00pm UTC](https://community.dynatrace.com/t/usql-extract-list-of-page-and-page-group/31472/5 "2021-05-19T13:00:21Z")

</div>

I tried that but what I get is “null” value. Is it working on your tenant?

Thank you,

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [May 19, 2021, 1:03pm UTC](https://community.dynatrace.com/t/usql-extract-list-of-page-and-page-group/31472/6 "2021-05-19T13:03:35Z")

</div>

Yes, that worked for me locally. If you expand the time you are looking at does it return any data?

If you don’t get anything still and you can see data for the same time period in Pages then I would ask on chat for assistance.

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [May 19, 2021, 1:07pm UTC](https://community.dynatrace.com/t/usql-extract-list-of-page-and-page-group/31472/7 "2021-05-19T13:07:11Z")

</div>

Will officially be available with 1.218 😉
