justmeagain Posted February 11 Share Posted February 11 Hi Does anyone know the SQL Command to extract Product Id Product Name and then Stock Location I can't seem to get it to work properly. Probably doing something really simple wrong...... Thanks in advance Link to comment Share on other sites More sharing options...
Muzammil Mac Posted February 11 Share Posted February 11 Did you mean a SQL query to fetch product ID, name, and Stock location? Link to comment Share on other sites More sharing options...
justmeagain Posted February 11 Author Share Posted February 11 Sorry - yes....I want to use it for a inventory check Probably should include Quantity as well Thanks Link to comment Share on other sites More sharing options...
ps8modules Posted February 12 Share Posted February 12 (edited) Hi. It does not work for combinations ! ps_ => table prefix id_lang = 1 => language id SELECT a.id_product, a.name, b.quantity, b.location FROM `ps_product_lang` a LEFT JOIN `ps_stock_available` b ON (a.id_product = b.id_product) WHERE a.id_lang = 1 AND b.id_product_attribute = 0; Edited February 12 by ps8moduly.cz (see edit history) Link to comment Share on other sites More sharing options...
justmeagain Posted February 12 Author Share Posted February 12 Thank you, works a treat....I was forgetting to select the lang.....knew it was something simple but just couldn't see it..... 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