SELECT SUM(o_totalprice) AS sum_of_totalprice, COUNT(o_totalprice) AS total_number_of_purches, AVG(o_totalprice) AS avg_price, STDDEV(o_totalprice) AS stddev_from_avg, MIN(o_date) AS the_minimum_date, MAX(o_date) AS the_maximum_date, o_nameFROM ordersGROUP BY o_nameORDER BY sum_of_totalprice;
Calculates the mathematical aggregations for any given different o_name value.