Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you work with largest and smallest values in combination with groups? #159

Open
johanek2 opened this issue Dec 4, 2020 · 0 comments

Comments

@johanek2
Copy link

johanek2 commented Dec 4, 2020

How do you work with min/max, largest/smallest values in combination with groups?

For example, say that I have a Model that looks like one of the examples:

class Person(Model):
    first_name = StringField()
    last_name = StringField()
    birthday = DateField()
    height = Float32Field()

    engine = Memory()

How do i write a query that gets the the oldest person in each family (those with the same last name)?
Can an example of this be added to the documentation @ishirav?

Thanks!

@johanek2 johanek2 changed the title How do you work with largest and smallest values? How do you work with largest and smallest values in combination with groups? Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant