Skip to content

use group by and order by together #114

Description

@huangyingjie

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions