I read the replies to this post and don't quite understand. I am quite
new to SQL.
I don't understand why u r selecting the records on the left but u
need the fields on the right?
Does this mean your instructions are something like :
Select * from leftfile l LEFT OUTER JOIN rightfile r on l.key = r.key -?
Shouldn't they be :
Select l.* from leftfile l LEFT OUTER JOIN rightfile r on l.key = r.key -?
De : midrange-l-bounces@xxxxxxxxxxxx
De la part de Trevor Perry
Envoyé : jeudi 6 mars 2008 16:59
À : Midrange Systems Technical Discussion Objet : SQL LEFT OUTER join
I am using a LEFT OUTER JOIN to get all records in the ~left~ file
regardless of a record existing in the ~right~ file. It works well,
apart from one thing.
The field I need from the ~right~ file is being filled with NULL when
there is no record there. I really would like blanks in that field rather than NULL.
How do I do that?
Thanks in advance,
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at http://archive.midrange.com/midrange-l.