Inconsistent datatypes: expected CHAR got NUMBER...
526844Feb 25 2007 — edited Feb 25 2007I am trying to run the following statement and get an error "ORA-00932: inconsistent datatypes: expected CHAR got NUMBER":
SELECT UNIQUE ((CASE WHEN AF.asset_flow_type IS NULL THEN decode(sum(3),0,NULL, sum(4)) ELSE 11 END)) * NULLIF (SUM (asset_flow_amount), 0) from O_ASSET_FLOW AF where AF.asset_flow_type = 39
Any suggestions? Thanks!