codice:
select offerta.id,uno.nomeutente as offerente, due.nomeutente as acquirente, offerta.oggettovenduto
from offerta 
inner join utente as uno on offerta.id_offerente = uno.id
inner join utente as due on offerta.id_acquirente = due.id