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
Visual Studio 2008 versus Expression Blend?
2 exchange accounts on a droid incredable
no wrap for breadcrump/
Outlook follow up folder in favourites
Refresh key for excel formulas linked to other sheets?
Make Table Query that searches for records that are NOT located in two tables.
How do we install snmp on Mac OS-X 10.3 ??
Simple 3 column <li>, middle column stretches?
Can a trigger tell it is already running
SSMS -to remember sessions