{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii/issues/1362","labels_url":"https://api.github.com/repos/yiisoft/yii/issues/1362/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii/issues/1362/comments","events_url":"https://api.github.com/repos/yiisoft/yii/issues/1362/events","html_url":"https://github.com/yiisoft/yii/issues/1362","id":6746170,"number":1362,"title":"[ENHANCEMENT] Provide easy access to aggregation functions (max, min, avg...) the same way as count()","user":{"login":"teo1978","id":542107,"avatar_url":"https://avatars.githubusercontent.com/u/542107?v=3","gravatar_id":"","url":"https://api.github.com/users/teo1978","html_url":"https://github.com/teo1978","followers_url":"https://api.github.com/users/teo1978/followers","following_url":"https://api.github.com/users/teo1978/following{/other_user}","gists_url":"https://api.github.com/users/teo1978/gists{/gist_id}","starred_url":"https://api.github.com/users/teo1978/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teo1978/subscriptions","organizations_url":"https://api.github.com/users/teo1978/orgs","repos_url":"https://api.github.com/users/teo1978/repos","events_url":"https://api.github.com/users/teo1978/events{/privacy}","received_events_url":"https://api.github.com/users/teo1978/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii/labels/type:feature","name":"type:feature","color":"02d7e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2012-09-09T16:10:30Z","updated_at":"2015-11-17T22:08:41Z","closed_at":"2015-11-17T22:08:41Z","body":"Just like CActiveRecord has a count() method, it should also have a max(), min(), avg() methods and/or a generic method (with the name of the SQL aggregate function as a parameter) for getting those aggregate functions in a very similar way as is currently possible with count().\n\nI know it's not completely trivial and it requires additional parameters compared to the count() case, but this should be perfectly feasible."}}