我需要在我的查詢中創建聯接costum表。 我需要做的是「ENTITY_ID」的類別下令所有產品週期,加入這個選擇,如果是有效的Magento加入表
SELECT *,
pps_product_id,
MIN(pps_last_unit_price) AS pps_last_unit_price,
pps_quantity_product
FROM
".Mage::getSingleton('core/resource')->getTableName('purchase_product_supplier')."
WHERE
pps_last_unit_price > '0'
AND pps_last_unit_price != '' AND pps_product_id = ".$data['entity_id']."
GROUP BY
pps_product_id
與SELECT *, COUNT(entity_id) AS conta FROM ".Mage::getSingleton('core/resource')->getTableName('catalog_category_entity_varchar')." WHERE attribute_id = 192 AND entity_id = ".$IDProduto." AND value != '' AND value != '0'
如果是有效的加入。 有人可以幫助我嗎? 謝謝
感謝朋友我解決我的問題。 – Ivo