MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » December 2013

Re: Where are the CORRELATION, VARIANCE, and COVARIANCE functions in IBM i DB2



fixed

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?







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact