Visualizzazione dei risultati da 1 a 10 su 19

Visualizzazione discussione

  1. #2
    Utente di HTML.it
    Registrato dal
    Oct 2014
    Messaggi
    539
    io scriverei la query così,
    Codice PHP:
    select   t1.data t1.identificativot2.altro1t2.altro2
    from
    (select identificativomax(data) as data from tabella group by identificativot1
    left join tabella t2 
    on t1
    .identificativo t2.identificativo 
    and t1.data t2.data
    order by t1
    .data desct1.identificativo 
    con questo risultato
    Codice PHP:
    2028-02-21    1234    xxxx    kkkk
    2025
    -03-12    9465    yyyy    ssss
    2024
    -10-08    8333    zzzz    qqqq
    2024
    -05-13    1100    cccc    tttt 
    Ultima modifica di marino51; 15-03-2025 a 22:48

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 © 2025 vBulletin Solutions, Inc. All rights reserved.