Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: Null via SQL case statement not working

$
0
0

Hi Patrick,

 

 

I think u are getting no rows retrieved when u fired that query else, u should have got 0 since u have used ISNULL function.

 

Can you try this,

 

Select case when X is null then 0 else 1 end as MyFlag from (Select (Select mytable.XYZ from mytable) as X from dummy);

 

 

Regards,

Akshay


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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