Salve a tutti!
ho 2 tabelle :
UTENTI
CHIAMATE
ogni utente fa N chiamate.
devo prendere , x tutti gli utenti, l'ultima chiamata effettuata.
pertanto la query base dovrebbe essere :
questa query prende, ovviamente, tutte le chiamate.... come posso fare per prendere appunto, x ogni utente, solo l'ultima chiamata?codice:select * from CHIAMATE left outer join UTENTI on UTENTI.id=CHIAMATE.id_utente order by data_chiamata desc.![]()