If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Difatti questa mi ha fatto un ordinamento perfetto , ora potrei perfezionarla e pesare il tutto considerando anche il campo item_pre che rappresenta il prezzo dell'ordine, ovvero item_qty moltiplicato per il prezzo.
se ti serve una mano chiedi pure...
Powerlifting instructor level III FIPL/AIF Certified Personal Trainer by International Sports Sciences Association
Master Slim coach by 4move
SELECT listino.cod, SUM(listino.qty)
FROM listino
GROUP BY listino.cod
ORDER BY 2 DESC;
Si vede che non avevo capito bene. Come l'ho pensata mi dice quante volte un prodotto è ordinato con la stessa quantità e viene ordinato per il numero di volte. Cmq tutto è bene quel che finisce ... in pene!
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Commenta