EXCELLENT
A reader, September 18, 2008 - 12:05 am UTC
Thank you Very much Kyte..
Generalizing the question
Joachim Durchholz, April 07, 2011 - 5:52 am UTC
I'm having the same problem, but for columns that are run through a COALESCE call like this:
coalesce (FSWGRP1.FWALPH, FSWGRP2.FWALPH, FSWGRP3.FWALPH, FSWGRP4.FWALPH, FSWGRP5.FWALPH)
This is from a VIEW definition that has FSWGRP1...4 as aliases for the FSWGRP table (multiple joins with different ON conditions).
FSWGRP.FWALPH is NUMBER(3,2), but the resultant column is just NUMBER.
Do all Oracle functions lose the precision/scale information?
Maybe all expressions, even? (That would even make sense in general, though it's sort of tough in this particular use case. Particularly since the code that generates the CREATE VIEW statement isn't supposed to know about representational details.)
April 12, 2011 - 1:22 pm UTC
Sorry, but in this case, if you want the view to have a number(3,2) in it, CAST will be the necessary approach.