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 Can I Search Exchange 2003 Message Store by subject
Global Functions ...global.asax?
Email Security and Attachments
Problem installing x86 HP PCL6 driver on Windows 2003 x64 server
Help find .Net Risk Matrix Controllor (or chart controll)
How do I turn off the Office warning message?
Could not find part of the path
Get user input filename from DoCmd.OutputTo acReport, stDocName2, acFormatTXT
Outlook 2003 folder list view archive folder error
How do you test a dataset for the existance of a record?