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
How to call more than one function in a procedure
sharing open ports in c#
sql (2005) query - code to combine multiple columns into one
getting file versions
Excel chart
Multiple UpDate & Select
Caluculate if met SLA for completetion of task- Problem
Miccrosoft, Excel, 2007 - How To Copy And Paste Conditional Formatting?
How to create Access Check Box Pick List Form then populate report based on selection
using a query to combine multiple records into one record