Eusebio100 Posted October 24, 2022 Share Posted October 24, 2022 Hello, I need to do a sql query to get a stock, but only for the products that do not have combinations. Let's see if you can help me, I'm not sure. Thanks. Link to comment Share on other sites More sharing options...
ps8modules Posted October 25, 2022 Share Posted October 25, 2022 SELECT a.* FROM ps_stock_available a WHERE a.id_product NOT IN ( SELECT DISTINCT(b.id_product) FROM ps_product_attribute b ); 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