Salve a tutti .
devo fare una query un po complicata.
esempio :
in pratica, voglio visualizzare SOLAMENTE l'ultimo pagamento di ogni utente.codice:SELECT USERNAME,ORDER_CODE FROM ACCOUNT INNER JOIN (select distinct(FK) from FATTURE order by date desc) tab on tab.FK = account.ID
Sapete come fare? a me da errore e dice che non posso mettere l'order by nella subquery...