~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/functions/aggregatefunctions.rst

  • Committer: Lee Bieber
  • Date: 2011-02-11 20:30:05 UTC
  • mfrom: (2157.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211203005-757o1y2yf78dxzqr
Merge Stewart - 716848: drizzleimport displays wrong program_name
Merge Stewart - update README file
Merge Andrew and Joe - Exposes the InnoDB SYS_REPLICATION_LOG to data_dictionary so that it is fast and fixes many issues we have been having

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
SQL group (aggregate) functions operate on sets of values. If you use an aggregate function in a statement containing no GROUP BY clause, it is equivalent to grouping on all rows.
5
5
 
6
 
General syntax for aggregate functions is:
7
 
 
8
 
.. code-block:: mysql
 
6
General syntax for aggregate functions is: ::
9
7
 
10
8
        SELECT "function type" ("column_name")
11
9
        FROM "table_name";
12
 
 
13
 
The following are examples of aggregate functions:
 
10
 
 
11
The following are examples of aggregate functions:
14
12
 
15
13
**AVG**:  Return the average value of the argument. (Does not work with temporal values unless first converted to numeric values.)
16
14