select only those records which are having only numeric values in col

select only those records which are having only numeric values in col1 , where col1 is defined as varchar 

select * from tab where col1 not like '%[^0123456789.]%'

Comments

Popular posts from this blog

GROUP BY, CUBE, ROLLUP and SQL SERVER 2005

How to Fix Error- Sys.WebForms.PageRequestManagerTimeoutException - The server request timed out

Generate the formatted URL from title like blog, article etc in SQL Server