Here is an example query on the schedulix_repository using a postgres repository.
To execute this query you have use the frontend shell or the sdms command line utility because it will be executed by the schedulix server which passes everything before the with clause as is to your underlying databas system.
The query might not be compatible over all different systems. That's why you will have to adapt it for mysql. I will try to explain it as good as possible to understand it.
The reason not running it directly against your database system is the with clause which is processed by schedulix after query execution giving you nice way to obtain the full pathnames of your batches, jobs and folders.
Note that you have to be member of the ADMIN group to run queries through the schedulix server.
select
sme.master_id,
msme.se_id as master_name,
sme.id,
sme.se_id as name,
sme.start_ts,
sme.finsh_ts,
sme.finsh_ts - sme.start_ts as runtime
from
sci_submitted_entity sme,
sci_v_scheduling_entity se,
sci_submitted_entity msme,
sci_v_scheduling_entity mse
where
msme.submit_ts between '2024-05-09 00:00:00' and '2024-05-09 23:59:59' and
sme.master_id =
msme.id and
msme.se_id =
mse.id and msme.se_version >= mse.valid_from and sme.se_version < mse.valid_to and
sme.se_id =
se.id and sme.se_version >= se.valid_from and sme.se_version < se.valid_to and
se.type = 'JOB'
with
master_name folder,
name folder
;
Table names here all start with sci_ indicating that we access the standard catalog views. Those views take care about versioning, decoding values, date conversion, ...
Unversioned tables only have one sci view with a prefix of sci_ like sci_submitted_entity.
Versioned tables have two views. Views with prefix sci_c_ showing the current (latest) version of rows. Views with prefix sci_v_ showing all versions with valid_from and valid_to which are not dates but tx ids.
During operation schedulix uses the version of a versioned row which has been valid for the tx id of the submit of the master (top level) batch/job.
The where clause:
msme.submit_ts between '2024-05-09 00:00:00' and '2024-05-09 23:59:59'
The time interval you want to inspect (we want to see all masters submitted at one day here)
Of course this is just an example and its up to you to you adapt the query for grouping, aggegating, sorting, ...
Hope this was usefull for you.
Regards
Dieter