Created
February 4, 2015 19:20
-
-
Save steverobbins/f095967db0864ca20e31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
eu_flat.entity_id, | |
eu_flat.sku, | |
def_eav.value default_eav_price, | |
eu_eav.value eu_eav_price, | |
eu_flat.price eu_flat_price | |
from catalog_product_flat_3 eu_flat | |
inner join catalog_product_entity_decimal eu_eav | |
on eu_flat.entity_id = eu_eav.entity_id | |
and eu_eav.attribute_id = 75 | |
and eu_eav.store_id = 3 | |
inner join catalog_product_entity_decimal def_eav | |
on eu_flat.entity_id = def_eav.entity_id | |
and def_eav.attribute_id = 75 | |
and def_eav.store_id = 1 | |
where eu_eav.value != eu_flat.price; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment