Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Pulling data that has some letters and Numbers

Author  Topic 

werhardt
Constraint Violating Yak Guru

270 Posts

Posted - 2012-04-17 : 11:31:09
I wanted to use this logic in my where clause....

Where clms_proc between 33010 and 37799

The only thing is there are letter in there as well. Example 3341F.

How can I pull the data without manually entering in every CPT Code. There is over 300+.

Thanks in advance.

Lamprey
Master Smack Fu Yak Hacker

4614 Posts

Posted - 2012-04-17 : 11:39:44
What is the issue? 3341F is between 37799 & 33010.
Go to Top of Page

werhardt
Constraint Violating Yak Guru

270 Posts

Posted - 2012-04-17 : 11:45:36
Yeah 3341F is between that range. There are some other too that have the letter.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-04-17 : 12:56:49
is it hex value you're storing in field?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -