shadowhand/latitude

How to select MAX?

leftdevel opened this issue · 1 comments

Hi there. Sorry if this is a naive question, I've read the documentation but I can't find how to do a MAX as in select max(column).

Doing a $builder->select(alias('max(my_column)', 'my_alias')) will result in:
SELECT "max(my_alias"."my_column)"

Thank you.

I've just figured it out:

$builder->select((alias(func('max', 'my_alias.my_column'), 'my_column_alias')),