Oct 25, 2004 #1 2314 Programmer May 19, 2001 69 IN hi, i want to select first two characters of a field using sql how do i do that
Oct 25, 2004 Thread starter #3 2314 Programmer May 19, 2001 69 IN HOW DO I CHECK WHETHER THE FIRST TWO CHARACTERS ARE NUMERIC Upvote 0 Downvote
Oct 25, 2004 #4 SantaMufasa Technical User Jul 17, 2003 12,588 US 2314 As I mentioned in your other thread, one method is: Code: ...Where translate(substr(<colname>,1,2),'^0123456789','^') is null... Let us know if this does what you wanted. Mufasa (aka Dave of Sandy, Utah, USA) @ 11:00 (25Oct04) UTC (aka "GMT" and "Zulu"), @ 04:00 (25Oct04) Mountain Time Upvote 0 Downvote
2314 As I mentioned in your other thread, one method is: Code: ...Where translate(substr(<colname>,1,2),'^0123456789','^') is null... Let us know if this does what you wanted. Mufasa (aka Dave of Sandy, Utah, USA) @ 11:00 (25Oct04) UTC (aka "GMT" and "Zulu"), @ 04:00 (25Oct04) Mountain Time