I want to display the names which is start from 0 to 9. i do not to use reg_exp and like functions.
My data:
select * from emp2;
15326
25371
35371
48615
59718
69718
79718
89718
99718
05326
15326
25371
35371
48615
59718
69718
79718
89718
99718
a19716
b09414
d%5034
!5033
**5031
89718
39718
05326
a19716
b09414
d%5034
!5033
**5031
89718
39718
I used below query to fetch the records.
select * from emp2 where name between '0' and '9';
15326
25371
35371
48615
59718
69718
79718
89718
05326
15326
25371
35371
48615
59718
69718
79718
89718
89718
39718
05326
89718
39718
Result: As i am getting values form 0 to 8.. 9 is not fetching, why?
some more query i tried.
select * from emp2 where name between '+1' and '10';
05326
05326
select * from emp2 where name between '9' and '0';
no rows selected
why this statement is not fetching any of the records
MY expected result: I want to fetch the records whose name starts with 0 to 9.