Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Result field
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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
![]() |
![]() |