Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Null via SQL case statement not working

$
0
0

Hi folks,

 

I have a simple field XYZ that has null values and the null values display as a question mark.

 

Now I have SQL querying this field that looks like this;

 

SELECT

myTable.XYZ,

CASE WHEN myTable.XYZ is Null Then 0 else 1 End As MyFlag

FROM... ETC

 

Of course the first column displays all question marks as expected....

But MyFlag field instead of displaying a list of zero's I'm getting all question marks.

 

What am I missing here?

 

Thanks!

-Patrick


Viewing all articles
Browse latest Browse all 8968

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>