In the table EMPLOYEE I am having a column EMP_NAME with varchar(100) type. I want to find all such EMP_NAME which are numeric and does not contain alphabet. For that I use REGEXP, it is working fine. I tried for another logic, the query is given below:
select emp_name from test.employee where lower(emp_name)=upper(emp_name);
but it is returning all the names(both numeric and alphabetical). Please tell me what is wrong with this query?