Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Can we use sql functions like MAX() MIN() for magento collection rather than the query mentioned in this post ?
How To Get Min & Max Attribute Values From Database to Link to Price Slider
you can use it like below.
$collection = Mage::getModel('modulename/modulename')->getCollection();
->columns('MAX(your_index) as max_aliases');
Required, but never shown