Quantcast
Viewing all articles
Browse latest Browse all 9

IsNull Question

Levi:

 

If you are wanting to use "isnull" you might also be able to do something like:

 

Code Snippet

isnull (cast(theValue as varchar), '--')

 

 

like for instance in:

 

Code Snippet

select isnull (cast(theValue as varchar), '--')
       as convertedValue
  from ( select 14 as theValue union all
         select null
       ) a

 

/*
convertedValue                
------------------------------
14
--
*/

 


Viewing all articles
Browse latest Browse all 9

Trending Articles