DB2 Common fool question 1000 q (v) _db2

Source: Internet
Author: User
Tags db2
Looking at the DB2 tutorial is: DB2 common fool question 1000 Q (v). Everyone in the application of DB2 may encounter some seemingly simple problems, especially for beginners, I briefly summed up in this, released to everyone, hope that we can help, but also welcome everyone to explore together, common development and common progress!
The following are mainly based on db27.x. The following characters are lowercase.
  
This article for DB2 Master is not to see.
  
DB2 function
135.AVG ()
Returns the average of a set of values.
Selectavg (SALARY) Frombsempms;
  
136.CORR (), Correlation ()
Returns the relationship coefficient of a pair of values.
Selectcorrelation (Salary,bonus) Frombsempms;
  
137.COUNT ()
Returns the number of rows or values in a group.
SelectCount (*) Frombsempms;
  
138.COVAR (), covariance ()
Returns the covariance of a pair of values.
Selectcovar (Salary,bonus) Frombsempms;
  
139.MAX ()
Returns the maximum value in a set of values.
Selectmax (SALARY) Frombsempms;

140.MIN ()
Returns the smallest value in a set of values.
Selectmin (SALARY) Frombsempms;
  
141.STDDEV ()
Returns the standard deviation of a set of values.
Selectstddev (SALARY) Frombsempms;
  
142.SUM ()
Returns the and of a set of data.
Selectsum (SALARY) Frombsempms;
  
143.VAR (), variance ()
Returns the variance of a set of values.
Selectvariance (SALARY) Frombsempms;
  
144.ABS (), Absval ()
Returns the absolute value of the parameter.
Selectabs ( -3.4) Frombsempms;
  
145.ACOS ()
Returns the inverse cosine of a parameter.
Selectacos (0.9) Frombsempms;
  
146.ASCII ()
Returns the ASCII code of the leftmost character of an integer parameter.
Selectascii (' R ') Frombsempms;
  
147.ASIN ()
Returns the inverse chord function of the argument of the angle expressed in radians.
Selectasin (0.9) Frombsempms;
  
148.ATAN ()
Returns the inverse tangent of a parameter, the argument of the angle in radians.
Selectatan (0.9) Frombsempms;
  
<

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.