arcgis-desktop – How to Select Only Numbers in a String Field by Attribute Using SQL

arcgis-desktopselect-by-attributesql

Using a SQL experssion in the "Select by Attributes" table, how would I only select records 1, 4, 5, 8 and omit the rest (I only want to select values that are entirely numbers)? What I have right now is SUBSTRING(address,1,1)<='9' AND SUBSTRING(address,1,1)<> ' ', but it won't catch record 2(1234 S Complex).

enter image description here

Best Answer

Here is a suggestion:

CAST(address AS INTEGER) >= 0