Solved

Find data in sql table column which is not integer

Posted on 2016-10-10
5
48 Views
Last Modified: 2016-10-10
Hello,
How can I write a query to find  data in sql table column which is not integer.

Cheers
0
Comment
Question by:RIAS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 51

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 41836974
SELECT *
FROM TableName
WHERE ISNUMBER(ColumnName)=0

Open in new window

0
 

Author Closing Comment

by:RIAS
ID: 41836975
Thanks!
0
 

Author Comment

by:RIAS
ID: 41836978
'ISNUMBER' is not a recognized built-in function name.
0
 
LVL 51

Expert Comment

by:Vitor Montalvão
ID: 41836980
Sorry, ISNUMERIC and not isnumber:
SELECT *
FROM TableName
WHERE ISNUMERIC(ColumnName)<>1

Open in new window

1
 

Author Comment

by:RIAS
ID: 41836989
Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question