Wanted to share this script. I pieced it together some time ago from various scripts. I think this might be the source for at least some of the query.
Removing the step_ID from the where clause will show run times by step_id and Total RunTime (step_id 0).
Read more »