I have a varchar field that contains both numeric and text data. I need to pull only numeric, non-null values.
I am fairly new to SQL, so I applogise if this is a really basic question.
Thanks.
hitry:
SELECT col1, col2
FROM table
WHERE (ISNUMERIC(col1) AND col1 IS NOT NULL)
where col1 is your varchar column
No comments:
Post a Comment