You have several approaches to this, for example: - use REGEXP_INSTR to find nonnumeric characters. Use this inside DECODE to make the decision if to convert or not - create a small function which returns number. Inside this, use TO_NUMBER and catch the potential error and ignore it. In case of an error, return NULL (or whatever is desired) Mika
The need to optimize rises from a bad design. My articles[^]