SELECT
name,
sched.cronpattern,
datenextrun,
datelastrun,
status,
sched.isactive,
schedl.summary
FROM ad_scheduler sched
JOIN ad_schedulerlog schedl on sched.ad_scheduler_id =schedl.ad_scheduler_id
WHERE true
AND sched.isactive='Y'
order by sched.name, schedl.created