When creating a Catalog Rule, it currently includes products that have tier prices.
I would like to do the direct opposite of the following code
$select->joinInner(
array('product_tierprice' => 'catalog_product_entity_tier_price'),
'product_tierprice.entity_id=rp.product_id',
array()
);
The above code will limit Catalog Rules to just products with tier prices and it works. Attempting to do the opposite causes errors.
What I want to do is rp.product_id's that are not present in catalog_product_entity_tier_price. Something along the lines of the following, but actually works
$select->joinLeft(
array('product_tierprice' => 'catalog_product_entity_tier_price'),
'product_tierprice.entity_id=rp.product_id',
array()
);
$select->where('rp.product_id NOT IN (product_tierprice.entity_id)');