Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to convert this statement to Open SQL?

Author  Topic 

royc
Yak Posting Veteran

53 Posts

Posted - 2010-09-23 : 04:04:54
Hello,

Can someone please tell me how can I get an equivalent statement in Open SQL to the one below? Unfortunately Open SQL doesn't allow CASESs...


SELECT AVG(CASE WHEN VALUE_COST > 0 THEN VALUE_COST ELSE NULL END)
FROM... WHERE...


Thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2010-09-23 : 07:58:37
We haven't got full information here yet...
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=150503




N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2010-09-23 : 09:36:40
If this is the Open SQL you're talking about:

http://help.sap.com/saphelp_crm40/helpdata/en/fc/eb3969358411d1829f0000e829fbfe/content.htm

You'll need to find an SAP forum and ask there.
Go to Top of Page
   

- Advertisement -