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!


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:

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

This thread ...


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

This mailing list archive is Copyright 1997-2020 by 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].