Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Joining against 0 rows

Joining against 0 rows

From: <david_barts_at_my-deja.com>
Date: Tue, 01 Feb 2000 18:55:39 GMT
Message-ID: <877a77$sm2$1@nnrp1.deja.com>


Suppose I do a join like:

SELECT table1.some_column, table2.other_column FROM table1, table2
WHERE table1.p_key = table2.f_key
  AND <other conditions which determine table1.p_key>

However, it is legitimate if table2 doesn't have corresponding rows; in this case I want to return, say, '' in place of table2.other_column.

Is it possible to do it elegantly (without subqueries?)

Thanks very much!

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Tue Feb 01 2000 - 12:55:39 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US