Last active
August 29, 2015 14:25
-
-
Save EdEichman/919685cee80d2a0675c2 to your computer and use it in GitHub Desktop.
Prestashop Product Features - to quickly generate a list of features per product
This file contains hidden or 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 | |
p.id_product, | |
p.name as name_product, | |
fl.id_feature, | |
fl.`name` as name_feature, | |
fv.value | |
from | |
product_lang p | |
left join feature_product as fp on (p.id_product = fp.id_product) | |
left join feature_lang as fl on (fl.id_feature = fp.id_feature) | |
left join feature_value_lang as fv on (fp.id_feature_value = fv.id_feature_value) | |
where | |
p.id_lang = 1 | |
and fv.id_lang = 1 | |
and fl.id_lang = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment