easymar Posted June 17, 2015 Share Posted June 17, 2015 Hello. Like in screenshot I want to update price for id_shop = 1 from id_shop = 14 (with adding + % value or + numerical value). I want update only existing products for each id_shops (on screenshot I have only one product existing in both shops). Can someone help? Link to comment Share on other sites More sharing options...
easymar Posted June 17, 2015 Author Share Posted June 17, 2015 Solution: UPDATE ps_product_shop aINNER JOIN ps_product_shop bON a.id_product=b.id_product AND a.id_shop<>b.id_shopSET a.price = b.price * x WHERE a.id_shop=14 AND b.id_shop=1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now