cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
620
Views
0
Helpful
1
Replies

SQL for tracking down Jobs & Virtual Resource

Todd Clayton
Level 1
Level 1

I’d like to simply select all jobs, and display the jobname and the resources assigned to it. Just jobmst_name  and resmst_name … Any help for someone useless with SQL? :)

1 Reply 1

Robert Gardner
Cisco Employee
Cisco Employee

Hey Todd

The resjob table joins the resources to the jobs.  The below query should get you started.

  select jm.jobmst_name,jm.jobmst_id, rj.resjob_id, rm.resmst_name from jobmst jm
  join resjob rj
  on jm.jobmst_id=rj.jobmst_id
  join resmst rm
  on rj.resmst_id=rm.resmst_id

Bob