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
combo box - basic question
Help caputring sql profiler trace
Installing a Windows 7 network printer
Mounting Images using IMAGEX
Multiselect
Strange errors when compiling and OpenGL program
Start app minimized in vb.net (2005) Compact Framework
Excel VBA To Calculate ISO Week Number Count For A Given Month / Year
SSIS question
Replace SBS2003 - moving Exchange