Please help....
I have dirty data need to clean up before I can calculate. First 2 digits are hours and last 2 digits are minutes. This column's data type is in varchar2 and this is how data is stored:
1. 1234
2. null
3. abcdefg
4. 12
What I would like to do is that if the field is not numeric and not 4 characters, I would like to display them as null.
I would like to create a function and use it several columns if I can.
Please help? Thanks bunch in advance!
I have dirty data need to clean up before I can calculate. First 2 digits are hours and last 2 digits are minutes. This column's data type is in varchar2 and this is how data is stored:
1. 1234
2. null
3. abcdefg
4. 12
What I would like to do is that if the field is not numeric and not 4 characters, I would like to display them as null.
I would like to create a function and use it several columns if I can.
Please help? Thanks bunch in advance!