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
How to use datacontractserialization
Deleting something from side bar - Wordpress / php template
ASA-SSM-AIP-20-K9
jquery move a set of form input fields
what javascript will loop through an array or evaluate a list for the following error checking javascript enbedded within a ColdFusion 9 form?
Script compiles, but never seems to tun
Rss feed Data Comparision
Need help knowing what parts of script to edit
Report Requesting Parameter Value
Where is the Object Browser in VB 2010 Express Edition?