I have a column which stored numeric and string values. I want to filter those numeric values from that column. Suppose I need to get rows which less than 100.
mytable
id | value
-------------------
1 aa
2 103
3 cc
4 90
5 88
suppose above in above table , 'value' column type is varchar.
I want to select value<100 rows.
my result set should be like as follows,
id | value
-------------------
4 90
5 88
Here is my imaginery query, But it doesn't
select * from mytable where TO_NUMBER(value)<100;
My question is deferenct than TO_NUMBER("*")
case. Important thing is i want do a mathamatical comarison, which is i want to select <100
numbers.