Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 12 su 12
  1. #11
    Utente di HTML.it L'avatar di badaze
    Registrato dal
    Jun 2002
    residenza
    Lyon
    Messaggi
    5,344
    Ho chiamato la mia tabella tab3.

    codice:
    Select a.store_ric, a.testo_ric, a.prezzo_ric, a.fatturato_sing, a.maxv 
    from 
    (select store_ric, testo_ric, prezzo_ric, fatturato_sing, max(n_venduti) as maxv from 
     tab3 where n_venduti>80 group by store_ric) a 
    inner join 
    (Select store_ric, max(n_venduti) as maxv from tab3 group by store_ric) b
    on a.store_ric = b.store_ric and a.maxv = b.maxv order by a.maxv desc

    Con i dati che hai postato.


    store_ric testo_ric prezzo_ric fatturato_sing maxv
    negozio1 iphone 6 700 42000 179
    negozio3 iphone 7 700 42000 152
    negozio2 iphone 6 700 42000 120
    Ridatemi i miei 1000 posts persi !!!!
    Non serve a nulla ottimizzare qualcosa che non funziona.
    Cerco il manuale dell'Olivetti LOGOS 80B - www.emmella.fr

  2. #12
    funzionaaaaaaa GRAZIE INFINITE !!!! A BUON RENDERE!
    L'intuizione creativa più di ogni altra cosa è l'unico elemento per cui la vita vale la pena di essere vissuta (D.W)

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.