If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Native SQL - instead of FOR and AT Clauses

Started by cognosun, 15 Oct 2017 04:21:29 AM

Previous topic - Next topic

cognosun


Gurus,

Can anyone help me how to convert (roughly) this Cognos SQL to Oracle SQL, which is written for one derived column.

SUM(MAX(COLUMN A for COLUMN  B) at COLUMN B) / COUNT ( COLUMN B at COLUMN B)
-------------

I need native SQL for the same, but with above expression, it's splitting Column B as seperate column, and sum() function is taking away decimals from the output.

Many Thanks in Advance
Joys