Averages/Arithmetic mean: Difference between revisions

Content added Content deleted
No edit summary
m (SQL simplification)
Line 2,953: Line 2,953:
select sum("datapoint")/count(*) from "numbers";
select sum("datapoint")/count(*) from "numbers";
</lang>
</lang>
...or...
<lang SQL>select avg("datapoint") from "numbers";</lang>

=={{header|Standard ML}}==
=={{header|Standard ML}}==
These functions return a real:
These functions return a real: