Microsoft
Software
Hardware
Network
Question : How do I convert an INT into a VARCHAR or STRING for use in CASE
This is the code,
case when AMV.[Duration] > 0 and AMV.[Comp Code] = 'HOT' then AMV.[Duration] else '' end
Instead of a blank result I get zero because the data type is INT. How do I convert the zero to blank please?
Answer : How do I convert an INT into a VARCHAR or STRING for use in CASE
case when AMV.[Duration] > 0 and AMV.[Comp Code] = 'HOT' then convert(varchar(10),AMV.[D
uration]) else '' end
Now I see. In that case, you need the expression to return a varchar type.
Random Solutions
Deleting OEM Jobs
On a Cross-Tab, how do I display difference from one cell to the next. Please see example.
Bigger than 20" standard aspect LCD monitors available?
Delete line with duplicate
SQL Exception when testing ASP.Net application
Several jobs in Symantec Backup Exec 11d say that they are "queued" but the backup process never begins-How can I fix this?
Trend Micro Office Scan Scheduled Scan
Excel 2007 Event when changing from one workbook sheet to another with in the same workbook.
Application that changes dates of files at once
sublists margin