#返回sku,price,specialPrice。排除可配置产品和已下架产品
#我这里catalog_product_entity_decimal表里attribute_id=75的value 是price
#catalog_product_entity_decimal表里attribute_id=76的value 是specialPrice
#
SELECT t1.sku,t2.`value`,t4.`value` FROM catalog_product_entity AS t1
LEFT JOIN (SELECT * from catalog_product_entity_decimal WHERE attribute_id=75) AS t2 ON t2.entity_id=t1.entity_id
LEFT JOIN (SELECT * from catalog_product_entity_decimal WHERE attribute_id=76) AS t4 ON t4.entity_id=t1.entity_id
LEFT JOIN catalog_product_entity_int AS t3 ON t3.entity_id=t1.entity_id
WHERE t1.type_id='simple' AND t3.attribute_id=96 AND t3.`value`=1