Microsoft
Software
Hardware
Network
Question : sql: issue checking if character is in number range
hi
i am writing a sql query, and one part i check
case when(h.status in (1,2,3,4,5,6,7,8))
all of these status's have a numerical value except status Q, hence i get
Conversion failed when converting the varchar value 'Q' to data type int.
can i use a convert here ? and if so how would i best implement it
Answer : sql: issue checking if character is in number range
Something like this perhaps:
case when(h.status in ('1', '2', '3', '4', '5', '6', '7', '8'))
Random Solutions
Trying to open Access files from version 2.0 from Access 2007. Getting a series of error messages.
Create an OLAP data cube
use the cast or convert function on a varchar field
Query Field With Date/Time
ADMT 3.0 example include file
How to target search core results to an audience
Expanding Fields in MS Access Report
using WebBrowser control in separate process
Windows 2000 theme
Get username and role c#.net