{"action":"opened","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/3187","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/3187/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/3187/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/3187/events","html_url":"https://github.com/sequelize/sequelize/issues/3187","id":58394173,"number":3187,"title":"Improve min, max and aggregate for multiple fields","user":{"login":"BridgeAR","id":8822573,"avatar_url":"https://avatars.githubusercontent.com/u/8822573?v=3","gravatar_id":"","url":"https://api.github.com/users/BridgeAR","html_url":"https://github.com/BridgeAR","followers_url":"https://api.github.com/users/BridgeAR/followers","following_url":"https://api.github.com/users/BridgeAR/following{/other_user}","gists_url":"https://api.github.com/users/BridgeAR/gists{/gist_id}","starred_url":"https://api.github.com/users/BridgeAR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BridgeAR/subscriptions","organizations_url":"https://api.github.com/users/BridgeAR/orgs","repos_url":"https://api.github.com/users/BridgeAR/repos","events_url":"https://api.github.com/users/BridgeAR/events{/privacy}","received_events_url":"https://api.github.com/users/BridgeAR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-20T18:49:55Z","updated_at":"2015-02-20T18:49:55Z","closed_at":null,"body":"I'd like to run the following query in Postgres:\r\n\r\nSELECT MAX(\"field1\"), MAX(\"field2\"), MAX(\"field3\") FROM \"tableName\" WHERE \"validTo\" IS NULL;\r\n\r\nThis is not possible atm with the specified functions in sequelize and I have to use a raw query. As far as I can see it the only thing that has to be changed to make this work is to allow an array for fields instead of a string for one field.\r\n\r\nOr is there any other way to solve this?"}}