NVL converts its second expression to the datatype of a character first expression. Therefore, NVL('DATE', 200) succeeds by converting 200 to character data. COALESCE does not accept the mixed NUMBER/DATE or character/DATE argument types used here, FRCM is not valid SQL syntax, and SYSDATZ is not a valid Oracle SQL pseudocolumn or a column supplied by DUAL.
Community Discussion