Magento 1.9 – Select All Products with Special Price

databasemagento-1.9productspecial-price

I want to select all the products SKU which have special price
through mysql query.

Best Answer

For Magento 1.9. Here 76 is attribute_id for special_price attribute.

select cpe.sku,cpe.type_id, cped.store_id, cped.value from catalog_product_entity_decimal cped
RIGHT OUTER JOIN catalog_product_entity cpe on cpe.entity_id = cped.entity_id 
where cped.attribute_id=76
order by cpe.type_id