Quantcast
Channel: SCN : All Content - SAP on Oracle
Viewing all articles
Browse latest Browse all 2104

How to convert this statement to SAP's Open SQL?

$
0
0

Hello,

 

Can someone please tell me how can I get an equivalent statement in Open SQL to the one below?

Unfortunately SAP's Open SQL doesn't allow CASESs and I can't have in in the WHERE clause because there are other fields I need to check and cannot eliminate a whole row if this particular field is 0.

 

SELECT AVG(CASE WHEN FIELD1 > 0 THEN FIELD1 ELSE NULL END)

FROM... WHERE...

 

 

Thanks


Viewing all articles
Browse latest Browse all 2104

Trending Articles



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