Created
January 24, 2014 09:47
-
-
Save hansek/8594678 to your computer and use it in GitHub Desktop.
Presta - cross selling - orders
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 o.id_order | |
FROM ps_orders o | |
LEFT JOIN ps_order_detail od ON (od.id_order = o.id_order) | |
WHERE o.valid = 1 | |
AND od.product_id = 991 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment