Advertisement
paderepiktet

Untitled

Nov 17th, 2014
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.43 KB | None | 0 0
  1. SELECT DISTINCT `e`.`attribute_set_id`
  2.  FROM `catalog_product_entity` AS `e`
  3.  INNER JOIN `catalog_product_index_price` AS `price_index`
  4.    ON price_index.entity_id = e.entity_id AND price_index.website_id = '1' AND price_index.customer_group_id = '1'
  5.  INNER JOIN `catalog_category_product_index` AS `cat_index`
  6.   ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(3, 4) AND cat_index.category_id='2'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement