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 -> Result field

Result field

From: Patrick Vanhoof <patrick.vanhoof_at_haven.antwerpen.be>
Date: 16 Jul 2004 07:18:38 -0500
Message-ID: <27e1c74c3cf7c1b89abc6d814aa2a2b2$1@www.orafaq.net>

Hi,

I have a table which contains a field (referred to below as "SCHEMA2"."FIELD2") with following format: NUMBER(9,3).

Now I create a view based on this and another table, which contains a case statement like:

CASE WHEN "SCHEMA1"."FIELD1" = 'A' THEN "SCHEMA2"."FIELD2" ELSE NULL END AS NameOfField

The resulting format of the field NameOfField in the view however now is NUMBER. I seem to have lost the (9,3) part.

How can I make sure that in my view the result field is also NUMBER(9,3)?

All help very much appreciated.

Patrick

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Received on Fri Jul 16 2004 - 07:18:38 CDT

Original text of this message

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