Ah yes, that does work, for some reason I was trying IsNumber, hmmmm
-----Original Message-----
From: Qasim Rasheed [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 22, 2005 9:32 PM
To: CF-Talk
Subject: Re: OT: SQL select where letter and number combination
Although I haven't tested it but this could work.
select *
from table
where substring( prodID, 1, 1 ) = 'T'
and isNumeric( substring( prodID, 2, len( item ) ) ) = 1
Qasim
On Tue, 22 Feb 2005 20:52:01 -0500, Cynthia Reece <[EMAIL PROTECTED]>
wrote:
> Hello All,
> This is not really CF related, but I'm struggling with a sql query....
> Here is what I want:
>
> SELECT *
> FROM table
> WHERE substring(prodID, 1,1)='T'
> AND **the rest of prodID is NUMERIC**
>
> Essentially I want T01 but not TR01.
>
> TIA
> Cynthia
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196036
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54