× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Matt - have you looked at the SQL Reference? VARIANCE or VAR is already there.

I don't see CORRELATION or COVARIANCE - the latter appears to be attainable with a formula based on the MEAN function. We do have the AVG function - I just don't remember if that's actually the MEAN or something else - been too long since I studied statistics!

Sounds like a good opportunity to submit a requirement - the darkness needs no more cursing at!

Vern

On 12/2/2013 4:19 PM, Matt Olson wrote:
Where are the CORRELATION, VARIANCE, and COVARIANCE functions in IBM i DB2.

LUW version of DB2 has them as indicated here:
CORRELATION: http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0002319.html
VARIANCE: http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0000766.html
COVARIANCE: http://pic.dhe.ibm.com/infocenter/db2luw/v10r5/topic/com.ibm.db2.luw.sql.ref.doc/doc/r0002320.html

Am I running into another dreaded feature parity mismatch between IBM i DB2 and LUW version of DB2?



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.