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 -> How can place NULL value in View definition?

How can place NULL value in View definition?

From: <laulau823_at_my-deja.com>
Date: Thu, 16 Dec 1999 17:05:43 GMT
Message-ID: <83b654$6c2$1@nnrp1.deja.com>

I want to UNION two table with the following SQL statement:

create or replace view testing as
select a.*, b.do DO from test1 a, test2 b where ... UNION
select a.*, NULL DO from test1 a, test2 b where ...

b.DO is integer type, however, I got the error message as the datatype mismatch in NULL column (NULL column is UNION with b.do column, I think integer type cannot match with NULL).

Is it possible to place the NULL value (i.e. don't place anything) in the corresponding column in view definition?

Thanks,
David

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Thu Dec 16 1999 - 11:05:43 CST

Original text of this message

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