I'm a newb to Informix and trying to convert the following statement to SQL Server (2005). The problem is the join. From what I've been able to find, it appears that Informix outer joins are left outer joins by default, so I'm pretty sure a "LEFT OUTER JOIN" needs to be there somewhere. The problem is the rest of the join syntax. Can anyone help?
Informix query:
table name: field names are:
it: lnum, vid, cc
vt: vid, cc
vr: vid, cc
hi: lnum
ac: lnum
Everything is straightforward except for the FROM statement.
Thanks
Informix query:
Code:
SELECT it.lnum, it.vid, it.cc FROM it, vt, vr, OUTER hi, ac WHERE it.vid = vr.vid AND it.cc = vt.cc AND it.lnum = hi.lnum AND it.lnum = ac.lnum
it: lnum, vid, cc
vt: vid, cc
vr: vid, cc
hi: lnum
ac: lnum
Everything is straightforward except for the FROM statement.
Thanks
Comment