Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle translation to sybase sql

Status
Not open for further replies.

martyc71

Programmer
Apr 9, 2004
31
0
0
US
Anyone out there know if the following code can be accomplish in Sybase ?

Oracle:

select
aa.field1,
bb.field2
from
(select keyfield, field1 from table1) aa,
(select keyfield, field2 from table2) bb
where aa.keyfield = bb.keyfield

Thanks
 
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.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top