Find den seneste cpuinfo før hver jobs starttid:
SELECT j.id,
j.starttime,
j.endtime,
j.jobname,
c.cpuusage
FROM (
SELECT j.id,
j.starttime,
j.endtime,
j.jobname,
MAX(c.usagetime) AS usagetime
FROM jobinfo AS j
LEFT JOIN cpuinfo AS c
ON c.usagetime <= j.starttime
GROUP BY j.id
) AS j
JOIN cpuinfo AS c ON j.usagetime = c.usagetime;