Unix Technical Forum

How do can I use a LEFT OUTER JOIN on the resultset of a join?

This is a discussion on How do can I use a LEFT OUTER JOIN on the resultset of a join? within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> I have a join of 4 tables: select * from a,b,d,c where <join conditions on a,b,d,c> I need to ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:55 PM
guhar1@yahoo.com
 
Posts: n/a
Default How do can I use a LEFT OUTER JOIN on the resultset of a join?

I have a join of 4 tables:

select *
from
a,b,d,c
where
<join conditions on a,b,d,c>

I need to join the resultset with another table <e>, but some records
of the resultet might not be in table <e>, but I want to see them. Whit
Oracle syntax it works:

select *
from
a,b,d,c,e
where
<join conditions on a,b,d,c>
and
c.key = e.key (+)

But I cant figure how to use the LEFT OUTER JOIN syntax:

select *
from
a,b,d,c
left outer join
e
on
c.key = e.key
where
<join conditions on a,b,d,c>

I returns all the rows of <c>?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com