hello,
Here is an example:
select avg(weight) as w , age from person group by age order by w desc;
I have get the result by using 'group by',and next what about to use 'order by' together?
And more complex,adding "where" after "from":
select avg(weight) as w , age from person where country='US' group by age order by w desc;