pjgarzon89 Posted September 9, 2021 Share Posted September 9, 2021 Hola! Me encantaría que me ayudarais a saber cómo realizar una consulta sql que exporte el número de pedidos que ha realizado cada cliente. Gracias! Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 10, 2021 Share Posted September 10, 2021 Puede utilizar la consulta SQL que se menciona a continuación para obtener el número de pedidos de cada cliente: Select id_customer, count(id_order) from ps_orders GROUP BY id_customer Link to comment Share on other sites More sharing options...
pjgarzon89 Posted September 10, 2021 Author Share Posted September 10, 2021 Funciona! Muchísimas gracias 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