I tried it in Sybase but I continue to get errors.
Here is the code:
select
a.job,
a.start_time,
b.end_time
from (select distinct date,
job,
start_time,
end_time
from v_control_m_jobs_detail
where start_time <> ""
) a, (select distinct date,
job,
start_time,
end_time
from v_control_m_jobs_detail
where end_time <> ""
) b
where a.job = b.job
I guess I could accomplish what I want by creating #temp tables.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.