Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com |
||||||||||||||
|
4D v20 R7
AVG
|
|
||
The AVG function returns the average of the arithmetic_expression. The optional ALL and DISTINCT keywords are used to respectively retain or eliminate any duplicate values.
This example returns the minimum value of tickets sold, the maximum value of tickets sold, the average of the tickets sold and the total amount of tickets sold for the MOVIES table:
SELECT MIN(Tickets_Sold),
MAX(Tickets_Sold),
AVG(Tickets_Sold),
SUM(Tickets_Sold)
FROM MOVIES
Produkt: 4D
Thema: Functions
4D - SQL Reference ( 4D v20 R7)