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
Font change word 2010
How to draw or place an Ellipse on MS Access Report
Using Jave SE 1.6, how can I determine the charset/encoding type of text inside a file?
AD site and services best practice
Accessing Files Server via WAN Link
ASPX file
Sanity Check on UDF Modification
Install MS Visual Studio .NET/SQL Server and PHP/MySql on the same computer
How to run an executable packaged inside a JAR?
what is the easy way of hitting a remote server on its availability every 5 secs and start up a batch file when it comes down