Hi All,
I'm working in Oracle 10g R2.
I have the following function and each record would have one of the below fields populated..where Im trying to get the non-null value to be the "actual_data". When I try to run I get the following error
VALUE_NBR is a NUMBER field in the table
VALUE_DT is a DATE field in the table
VALUE_CD is a VARCHAR2 field in the table
VALUE_TXT is a VARCHAR2 field in the table
ORA-00932: inconsistent datatypes: expected NUMBER got DATE
COALESCE(VALUE_NBR,VALUE_DT,VALUE_CD,VALUE_TXT) AS ACTUAL_DATA,
Please suggest me an workaround or an alternative..I tried NVL..which had the same error as well.
Thanks in advance
HU