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
Hide / Unhide Combo Boxes using Visible property Conditionally
Powerpoint 2007 Relative Hyperlinks
batch file to search all drives
Changing Domain Controller IP Address
Problems saving an excel workbook in Access vba
Best Registry Cleaning Program?
Custom Order By
Excel file size too much.How can i reduce the size.
how to insert null value in a table using SQLParameter class
SQL, Login Failed Error