Ivisu Posted July 18, 2022 Share Posted July 18, 2022 Hola quisiera puedan ayudarme con una consulta sql. Necesito saber en que talla se compraron los productos, en un determinado periodo de tiempo. Espero puedan ayudarme. Muchas gracias Link to comment Share on other sites More sharing options...
Manuel_GT Posted July 19, 2022 Share Posted July 19, 2022 Hola! Mi tienda no funciona con tallas, pero yo usaria las tablas "order" y "order_detail" para sacar los productos vendidos en un periodo. Así puedes ver los nombres, EAN, etc.. Algo asi: SELECT a.id_order,a.`date_add`, b.product_reference, b.product_name,b.product_quantity,product_ean13 FROM orders a, order_detail b WHERE a.id_order = b.id_order AND a.date_add > '2022-07-01' AND a.date_add < '2022-07-20' ORDER BY 1 Espero te sirva Link to comment Share on other sites More sharing options...
Ivisu Posted July 19, 2022 Author Share Posted July 19, 2022 (edited) Muchisimas gracias! Ahora intento probarlo. ☺️ Edited July 19, 2022 by Ivisu (see edit history) 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