How to run Custom Mysql Query in Magento

Magento uses Zend framework in very standered manner . It uses singleton methodology to access database.Like many other standered frameworks Magento also uses the concept of ORM (Object Relation Model) approach. To access the database Magento uses resource model where each magento model is divided into two categories i) Active Record type ii) EAV (Entity(…)