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
DeleteExpiredSessions Job on SQL
Windows Explorer Keeps shutting down and restarting (VISTA)
access 2003 report with calculated field.
MS Access 2007 Customize Office Menu Button
Microsoft Excel and PowerPoint 2003 print with no left margin
powerpoint shows gabbage text when opening
Vista Business logs off immediately after login.
Windows Server 2008 r2
Excel to reporting services
Sorting a date column in dataview