Created
July 29, 2013 17:34
-
-
Save intco/6106029 to your computer and use it in GitHub Desktop.
Query opzioni prodotti opencart
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 `oc_option_value`.`option_value_id` | |
, `oc_product_option_value`.`product_option_value_id` | |
, `oc_option_description`.`name` | |
FROM | |
`oc_product_option_value` | |
LEFT JOIN `oc_option_value` | |
ON | |
`oc_option_value`.`option_value_id` = `oc_product_option_value`.`option_value_id` | |
LEFT JOIN `oc_option` | |
ON | |
`oc_option`.`option_id` = `oc_option_value`.`option_id` | |
LEFT JOIN `oc_option_description` | |
ON | |
`oc_option_description`.`option_id` = `oc_option`.`option_id` | |
LEFT JOIN `oc_product_option` | |
ON | |
`oc_product_option`.`product_option_id` = `oc_product_option_value`.`product_option_id` | |
WHERE 1=1 | |
GROUP BY `oc_product_option_value`.`option_value_id` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment