Jump to content

Consultas, Informes Sql


Ivisu

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...