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
exit from a loop or if statement when a certain condtion is true in c#
Format Date
Access - SQL Trim Inner Join
Windows 7, switch user and log in as administrator
Need SQL Syntax help to make my qry more efficient.
Print ACCESS Report that is both filtered and sorted.
Select Into and If Else
What does this warning in Excel mean?
Exchange 2007 Anonymous for PHP Script Sending
Getting an error in Excel, when trying to run VBA code