Created
October 19, 2018 19:39
-
-
Save underdown/ade1f4d877cdfa6abe99a4ad26492964 to your computer and use it in GitHub Desktop.
OpenCart query select all orders
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 | |
* | |
FROM | |
oc_order o | |
LEFT JOIN | |
oc_customer oc | |
ON (o.customer_id = oc.customer_id) | |
WHERE EXISTS ( | |
SELECT | |
* | |
FROM | |
oc_order | |
WHERE | |
customer_id=o.customer_id | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment