# Jobs profiles by SQL query

**URL:** <https://community.dremio.com/t/jobs-profiles-by-sql-query/5102>\
**Category:** Uncategorized\
**Created:** [February 24, 2020, 5:11pm UTC](https://community.dremio.com/t/jobs-profiles-by-sql-query/5102 "2020-02-24T17:11:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seralf](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/seralf/32/1993_2.png) [@seralf](https://community.dremio.com/u/seralf)\
**Post date:** [February 24, 2020, 5:11pm UTC](https://community.dremio.com/t/jobs-profiles-by-sql-query/5102/1 "2020-02-24T17:11:41Z")

</div>

Hello

I wonder if there is a way to retrieve the full list of executed jobs by SQL?  
Are those details (the same offered by the APIs) saved on a system table, taht I could be able to query?

My purpose is to create a report of some of the details from jobs (for example execution time) using SQL: is that possible in some way? I was not able to find a way to do it without relying on HTTP APIs…

thanks in advance,  
Alfredo

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [March 4, 2020, 3:04pm UTC](https://community.dremio.com/t/jobs-profiles-by-sql-query/5102/2 "2020-03-04T15:04:38Z")

</div>

@seralf

Currently we can only retrieve the job details for a particular job via REST API using the job id. You should be able to search for a table\_name ,SQL match on the jobs search via UI. This capability is not yet there through REST API

Are you looking for a system table like v$sql in Oracle that shows all the SQL run based of a SQL ID?

Thanks  
Bali

---

<div class="post-metadata">

**Author:** ![seralf](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/seralf/32/1993_2.png) [@seralf](https://community.dremio.com/u/seralf)\
**Post date:** [July 8, 2020, 5:53pm UTC](https://community.dremio.com/t/jobs-profiles-by-sql-query/5102/3 "2020-07-08T17:53:48Z")

</div>

HI Bali thanks for the reply.  
The idea to search by table\_name is useful via API, but I’d like to have a similar approach available by SQL views/tables.  
I mean: it could be very useful to have a dedicated system space (for example enabled by a configuration flag), in which all the job details were automatically saved. This way a user could query dremio jobs themselves using the same tools, and for example it could be possible to have report on those…  
It should be possibile to implment this feature, because it’s something we can already do now by hand, I suppose retrieving the results before exposing them on REST API and save them in an internal space should be very easy to accomplish.

Thanks  
Alfredo

---

<div class="post-metadata">

**Author:** ![Alain](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/alain/32/2639_2.png) [@Alain](https://community.dremio.com/u/Alain)\
**Post date:** [July 9, 2020, 2:07pm UTC](https://community.dremio.com/t/jobs-profiles-by-sql-query/5102/4 "2020-07-09T14:07:20Z")

</div>

Hi,

Yes, exposing job thru sql would enable us to have power bi report on thoses jobs.

Doing the extra work of creating external java code and using rest api is a poor man solution.

Having this build in Dremio would be real nice for us - and the community.

Thanks

---

<div class="post-metadata">

**Author:** ![zonkd](https://avatars.discourse-cdn.com/v4/letter/z/ce73a5/32.png) [@zonkd](https://community.dremio.com/u/zonkd)\
**Post date:** [March 22, 2021, 9:12pm UTC](https://community.dremio.com/t/jobs-profiles-by-sql-query/5102/5 "2021-03-22T21:12:39Z")

</div>

I agree, we would like to be able to run some reports showing: the most used/least used VDS we have, the most active users, the busiest time of day, the worst performing queries, the most hit reflections, the largest spaces/folders, the most used personal spaces, regular or reoccurring queries of a personal space (we want to limit this), and some other ideas to help us monitor and acknowledge our users and environment.

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [March 24, 2021, 6:24am UTC](https://community.dremio.com/t/jobs-profiles-by-sql-query/5102/6 "2021-03-24T06:24:24Z")

</div>

@zonkd

There are several new enhancement in the product road map and one of them is to have more system tables, please see the release notes of every release to track enhancements released
