Hi,
I have varchar2 field in a table which has data in number/alpha numeric field.
I want to extract records which has only numeric field with validation like the number should be between 1 & 10.
The sample data is given below.
A12
7
bb
5
4
c45
11
So out of the above 7 records, I need a query which display data 7,5,4 only bcoz the I need numbers between 1 & 10 only.
I tried translate(t.trn_matl_cd,'_0123456789','_') but it works for 1st step i.e. display all number fields but how do I do the validation to get number between 1 & 10.
Thanks & regards,
RAJ
I have varchar2 field in a table which has data in number/alpha numeric field.
I want to extract records which has only numeric field with validation like the number should be between 1 & 10.
The sample data is given below.
A12
7
bb
5
4
c45
11
So out of the above 7 records, I need a query which display data 7,5,4 only bcoz the I need numbers between 1 & 10 only.
I tried translate(t.trn_matl_cd,'_0123456789','_') but it works for 1st step i.e. display all number fields but how do I do the validation to get number between 1 & 10.
Thanks & regards,
RAJ