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

Home -> Community -> Usenet -> c.d.o.server -> SQL and IN

SQL and IN

From: Christoph Seidel <christoph.seidel1_at_gmx.de>
Date: Mon, 30 Jun 2003 11:04:21 +0200
Message-ID: <bdoudi$up2mf$1@ID-143718.news.dfncis.de>


Hi,

is this possible:

Let's say I have a Table which has the column Id. This table should have 3 rows, with Id 1,2,3.

When i query for: select * from Table where Id IN (1,2,4) i will get 2 rows:

1, foo1, bar1
2, foo2, bar2

But i need 3 rows, Id 1 and 2, with the data of these rows and 4 with all column values set to null besides Id which shall be 4.

1, foo1, bar1
2, foo2, bar2
4, null, null
Received on Mon Jun 30 2003 - 04:04:21 CDT

Original text of this message

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